diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..dcf5397 --- /dev/null +++ b/.htaccess @@ -0,0 +1,29 @@ +RewriteEngine on +RewriteBase / + +# Redirect www to non www +RewriteCond %{HTTP_HOST} ^www.adamgraham.github.io +RewriteRule (.*) http://adamgraham.github.io/$1 [R=301,L] + +# Redirect http to https +RewriteCond %{HTTPS} off +RewriteCond %{HTTP_HOST} ^adamgraham.github.io +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] +#Header always set Content-Security-Policy "upgrade-insecure-requests;" + +# Remove trailing slashes +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)/$ /$1 [L,R=301] + +# Redirect all file requests to index.html (SPA) +# RewriteCond %{REQUEST_FILENAME} !-f +# RewriteCond %{REQUEST_FILENAME} !-d +# RewriteRule (.*) index.html [QSA,L] + +# Redirect directories +RewriteRule ^game/(.*)$ /games [R=301,L] +RewriteRule ^website/(.*)$ /websites [R=301,L] +RewriteRule ^presentation/(.*)$ /presentations [R=301,L] + +# Redirect home on 404 +ErrorDocument 404 / diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js b/00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js deleted file mode 100644 index ec50d6c..0000000 --- a/00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js.LICENSE.txt */ -(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[128],{8828:function(e){"use strict";e.exports=Object.assign},8305:function(e,t,n){"use strict";n.d(t,{oY:function(){return ze},zr:function(){return Ze}});var r=n(6304),a=n(6942),i=n.n(a),o=n(6540),l=n(8007);function c(e){return e&&"undefined"!=typeof sessionStorage&&Number.parseInt(sessionStorage.getItem(e+"-slide"))||0}const s=(e,t,n,r)=>(0,o.useMemo)((()=>({category:e,gallery:t,slideIndex:n,currentSlide:t[n],setSlideIndex:n=>{n=Math.min(Math.max(n,0),t.length-1),function(e,t){e&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem(e+"-slide",t)}(e,n),r(n),(0,l.navigate)("/"+e)}})),[e,t,n]);var u=(0,o.createContext)({category:"",gallery:[],slideIndex:0,currentSlide:null,setSlideIndex:()=>{}}),m=n(5556),d=n.n(m);const g=d().shape({sharp:d().shape({original:d().shape({src:d().string.isRequired,width:d().number,height:d().number})})});d().shape({category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,id:d().string.isRequired,image:g.isRequired,imageAltText:d().string,imageBorder:d().string,title:d().string.isRequired});var p=e=>{let{className:t,slide:n}=e;const a="undefined"!=typeof navigator&&!navigator.onLine,c="/"+n.category+"/"+n.id;return o.createElement("div",{className:i()("slide",t)},o.createElement("div",{className:"slide__image-wrapper"},o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.vb,{alt:n.imageAltText||"",animated:!1,className:i()("slide__image",{["slide__image--border-"+n.imageBorder]:n.imageBorder}),width:n.image.sharp.original.width,height:n.image.sharp.original.height,src:n.image.sharp.original.src,showLoadingSpinner:!a}))),o.createElement("div",{className:"slide__text-wrapper"},o.createElement("div",{className:"slide__text-container"},o.createElement("p",{className:"eyebrow"},n.date),o.createElement("h1",{className:"h3"},n.title),o.createElement("p",null,n.description_short||n.description),o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.$n,{size:r.$n.size.small},"More Details")))))};var f={chevronLeft:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIG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uNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg=="};var y=e=>{let{className:t}=e;const n=(0,o.useContext)(u),a=(0,r.Ub)("(max-width: 1365px)");return o.createElement("article",{className:i()("gallery",{"gallery--vertical-layout":a},t)},o.createElement("button",{"aria-label":"Previous Slide",className:"gallery__button left",disabled:n.slideIndex<=0,onClick:()=>n.setSlideIndex(n.slideIndex-1)},n.slideIndex>0&&o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("div",{className:"gallery__slides"},n.currentSlide&&o.createElement(p,{slide:n.currentSlide})),o.createElement("button",{"aria-label":"Next Slide",className:"gallery__button right",disabled:n.slideIndex>=n.gallery.length-1,onClick:()=>n.setSlideIndex(n.slideIndex+1)},n.slideIndexe.toUpperCase()))}var I=e=>{let{location:t,menuType:n,setMenuType:a}=e;const i=(0,o.useContext)(u),c=n===E,s=n===T;return o.createElement("header",{className:"app-menu__header"},o.createElement("div",null,o.createElement(r.N_,{className:"logo h4",ElementType:l.Link,to:"/",unstyled:!0},"Adam Graham"),void 0===i.slideIndex&&!fullscreen&&o.createElement(r.N_,{className:"app-menu__page-title h4 display-none margin-bottom-none",ElementType:l.Link,to:"/"+category,unstyled:!0},w(category)),void 0!==i.slideIndex&&o.createElement("div",{className:"app-menu__slide-buttons display-none",style:{marginLeft:"-8px"}},o.createElement("button",{"aria-label":"Previous Slide",disabled:i.slideIndex<=0,onClick:()=>i.setSlideIndex(i.slideIndex-1)},o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("button",{"aria-label":"Next Slide",className:"margin-left-md",disabled:i.slideIndex>=i.gallery.length-1,onClick:()=>i.setSlideIndex(i.slideIndex+1)},o.createElement("img",{alt:"",src:f.chevronRight}))),o.createElement(r.jq,{links:h,LinkElementType:l.Link,location:t})),o.createElement("div",null,o.createElement(r.U1,{className:"margin-left-md margin-right-md",iconSize:20,iconInnerPadding:10,links:b}),o.createElement("button",{"aria-label":s?"Hide Gallery":"Show Gallery",className:"app-menu__gallery-button margin-left-xl",onClick:()=>a(s?v:T)},o.createElement("img",{alt:"",src:s?f.galleryOpen:f.gallery})),o.createElement("button",{"aria-label":c?"Close Menu":"Open Menu",className:"app-menu__menu-button margin-left-xl",onClick:()=>a(c?v:E)},o.createElement("img",{alt:"",src:c?f.menuOpen:f.menu}))))};var M=e=>{let{onSelect:t,open:n}=e;const r=(0,o.useContext)(u);return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__gallery-view",{open:n})},o.createElement("div",{className:"app-menu__gallery"},r.gallery.map(((e,a)=>o.createElement("button",{"aria-disabled":!n,"aria-label":e.title,className:"app-menu__thumbnail",disabled:!n,key:e.id,onClick:()=>{r.setSlideIndex(a),t(a)}},o.createElement("img",{alt:e.imageAltText||"",className:i()("img-fluid","app-menu__thumbnail-image",{["app-menu__thumbnail-image--border-"+e.imageBorder]:e.imageBorder}),width:e.image.sharp.original.width,height:e.image.sharp.original.height,src:e.image.sharp.original.src}))))))};var S=e=>{let{onLink:t,open:n}=e;return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__menu-view",{open:n})},o.createElement("ul",{className:"app-menu__nav-list"},h.map((e=>o.createElement("li",{key:e.to},o.createElement(r.N_,{activeClassName:"","aria-disabled":!n,"aria-label":e.name,disabled:!n,ElementType:e.ElementType||l.Link,external:e.external,onClick:t,tabIndex:n?0:-1,to:e.to,unstyled:!0},e.name))))))};var N,C,A,j,x=e=>{let{location:t}=e;const{0:n,1:a}=(0,o.useState)(v),l=n!==v,c=n===E,s=n===T,u=(0,o.useCallback)((()=>{a(v)}),[]);return(0,r.ln)(l,!0),o.createElement("div",{className:i()("app-menu",{"app-menu--fullscreen":l})},o.createElement("div",{className:"app-menu__container"},o.createElement(I,{location:t,menuType:n,setMenuType:a}),o.createElement("div",{className:"app-menu__body"},o.createElement(S,{onLink:u,open:c}),o.createElement(M,{onSelect:u,open:s}))))},L=n(2098),k=n.n(L),O=n(115),D=n.n(O),_=n(8828),P=n.n(_),z="bodyAttributes",H="htmlAttributes",Z="titleAttributes",R={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},B=(Object.keys(R).map((function(e){return R[e]})),"charset"),Y="cssText",G="href",U="http-equiv",W="innerHTML",q="itemprop",V="name",F="property",K="rel",Q="src",X="target",J={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$="defaultTitle",ee="defer",te="encodeSpecialCharacters",ne="onChangeClientState",re="titleTemplate",ae=Object.keys(J).reduce((function(e,t){return e[J[t]]=t,e}),{}),ie=[R.NOSCRIPT,R.SCRIPT,R.STYLE],oe="data-react-helmet",le="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},ce=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},me=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},de=function(e){var t=he(e,R.TITLE),n=he(e,re);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=he(e,$);return t||r||void 0},ge=function(e){return he(e,ne)||function(){}},pe=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return se({},e,t)}),{})},fe=function(e,t){return t.filter((function(e){return void 0!==e[R.BASE]})).map((function(e){return e[R.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},be=(N=Date.now(),function(e){var t=Date.now();t-N>16?(N=t,e(t)):setTimeout((function(){be(e)}),0)}),ve=function(e){return clearTimeout(e)},Ee="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||be:n.g.requestAnimationFrame||be,Te="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ve:n.g.cancelAnimationFrame||ve,we=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ie=null,Me=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,m=e.title,d=e.titleAttributes;Ce(R.BODY,r),Ce(R.HTML,a),Ne(m,d);var g={baseTag:Ae(R.BASE,n),linkTags:Ae(R.LINK,i),metaTags:Ae(R.META,o),noscriptTags:Ae(R.NOSCRIPT,l),scriptTags:Ae(R.SCRIPT,s),styleTags:Ae(R.STYLE,u)},p={},f={};Object.keys(g).forEach((function(e){var t=g[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(f[e]=g[e].oldTags)})),t&&t(),c(e,p,f)},Se=function(e){return Array.isArray(e)?e.join(""):e},Ne=function(e,t){void 0!==e&&document.title!==e&&(document.title=Se(e)),Ce(R.TITLE,t)},Ce=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(oe),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),l=0;l=0;m--)n.removeAttribute(i[m]);a.length===i.length?n.removeAttribute(oe):n.getAttribute(oe)!==o.join(",")&&n.setAttribute(oe,o.join(","))}},Ae=function(e,t){var n=document.head||document.querySelector(R.HEAD),r=n.querySelectorAll(e+"["+oe+"]"),a=Array.prototype.slice.call(r),i=[],o=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===W)n.innerHTML=t.innerHTML;else if(r===Y)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(oe,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):i.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:i}},je=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}),"")},xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[J[n]||n]=e[n],t}),t)},Le=function(e,t,n){switch(e){case R.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[oe]=!0,a=xe(n,r),[o.createElement(R.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=je(n),i=Se(t);return a?"<"+e+" "+oe+'="true" '+a+">"+me(i,r)+"":"<"+e+" "+oe+'="true">'+me(i,r)+""}(e,t.title,t.titleAttributes,n)}};case z:case H:return{toComponent:function(){return xe(t)},toString:function(){return je(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[oe]=!0,r);return Object.keys(t).forEach((function(e){var n=J[e]||e;if(n===W||n===Y){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),o.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===W||e===Y)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+me(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===ie.indexOf(e);return t+"<"+e+" "+oe+'="true" '+a+(o?"/>":">"+i+"")}),"")}(e,t,n)}}}},ke=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.scriptTags,s=e.styleTags,u=e.title,m=void 0===u?"":u,d=e.titleAttributes;return{base:Le(R.BASE,t,r),bodyAttributes:Le(z,n,r),htmlAttributes:Le(H,a,r),link:Le(R.LINK,i,r),meta:Le(R.META,o,r),noscript:Le(R.NOSCRIPT,l,r),script:Le(R.SCRIPT,c,r),style:Le(R.STYLE,s,r),title:Le(R.TITLE,{title:m,titleAttributes:d},r)}},Oe=k()((function(e){return{baseTag:fe([G,X],e),bodyAttributes:pe(z,e),defer:he(e,ee),encode:he(e,te),htmlAttributes:pe(H,e),linkTags:ye(R.LINK,[K,G],e),metaTags:ye(R.META,[V,B,U,F,q],e),noscriptTags:ye(R.NOSCRIPT,[W],e),onChangeClientState:ge(e),scriptTags:ye(R.SCRIPT,[Q,W],e),styleTags:ye(R.STYLE,[Y],e),title:de(e),titleAttributes:pe(Z,e)}}),(function(e){Ie&&Te(Ie),e.defer?Ie=Ee((function(){Me(e,(function(){Ie=null}))})):(Me(e),Ie=null)}),ke)((function(){return null})),De=(C=Oe,j=A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,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!D()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case R.SCRIPT:case R.NOSCRIPT:return{innerHTML:t};case R.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,a=e.newChildProps,i=e.nestedChildren;return se({},r,((t={})[n.type]=[].concat(r[n.type]||[],[se({},a,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(r.type){case R.TITLE:return se({},a,((t={})[r.type]=o,t.titleAttributes=se({},i),t));case R.BODY:return se({},a,{bodyAttributes:se({},i)});case R.HTML:return se({},a,{htmlAttributes:se({},i)})}return se({},a,((n={})[r.type]=se({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=se({},t);return Object.keys(e).forEach((function(t){var r;n=se({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return o.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ae[n]||n]=e[n],t}),t)}(ue(a,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case R.LINK:case R.META:case R.NOSCRIPT:case R.SCRIPT:case R.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:o,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=ue(e,["children"]),r=se({},n);return t&&(r=this.mapChildrenToProps(t,r)),o.createElement(C,r)},ce(t,null,[{key:"canUseDOM",set:function(e){C.canUseDOM=e}}]),t}(o.Component),A.propTypes={base:d().object,bodyAttributes:d().object,children:d().oneOfType([d().arrayOf(d().node),d().node]),defaultTitle:d().string,defer:d().bool,encodeSpecialCharacters:d().bool,htmlAttributes:d().object,link:d().arrayOf(d().object),meta:d().arrayOf(d().object),noscript:d().arrayOf(d().object),onChangeClientState:d().func,script:d().arrayOf(d().object),style:d().arrayOf(d().object),title:d().string,titleAttributes:d().object,titleTemplate:d().string},A.defaultProps={defer:!0,encodeSpecialCharacters:!0},A.peek=C.peek,A.rewind=function(){var e=C.rewind();return e||(e=ke({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},j);De.renderStatic=De.rewind;var _e=e=>{const t=(0,l.useStaticQuery)("1995548873"),{metadata:n}=t.site,r={...n,...e};return o.createElement(De,null,o.createElement("title",null,r.title),o.createElement("meta",{name:"description",content:r.description}),r.image&&o.createElement("meta",{name:"image",content:r.image}),r.url&&o.createElement("meta",{property:"og:url",content:r.url}),o.createElement("meta",{property:"og:type",content:"website"}),o.createElement("meta",{property:"og:title",content:r.title}),o.createElement("meta",{property:"og:description",content:r.description}),r.image&&o.createElement("meta",{property:"og:image",content:r.image}),o.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),o.createElement("meta",{name:"twitter:creator",content:"@zigurous"}),o.createElement("meta",{name:"twitter:title",content:r.title}),o.createElement("meta",{name:"twitter:description",content:r.description}),r.image&&o.createElement("meta",{name:"twitter:image",content:r.image}))};var Pe=e=>{let{children:t,className:n,id:r,location:a,metadata:l}=e;return o.createElement("div",{className:"app","data-theme":"dark"},o.createElement(_e,l),o.createElement("main",{className:i()("page",n),id:r},t),o.createElement(x,{location:a}))};var ze=e=>{let{category:t,gallery:n,location:r}=e;const{0:a,1:i}=(0,o.useState)(c(t)),l=s(t,n,a,i);return o.createElement(u.Provider,{value:l},o.createElement(Pe,{id:t,location:r,metadata:{url:"https://adamgraham.io/"+t,title:"Adam Graham • "+w(t)}},o.createElement(y,null)))};d().shape({buttons:d().arrayOf(d().shape({name:d().string.isRequired,link:d().string.isRequired,icon:d().string})),category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,description_long:d().arrayOf(d().string),details:d().arrayOf(d().shape({key:d().string.isRequired,value:d().string.isRequired})),id:d().string.isRequired,image:g.isRequired,sections:d().arrayOf(d().shape({title:d().string,link:d().string,mainImage:g,mainVideo:d().string,paragraphs:d().arrayOf(d().string),gallery:d().arrayOf(g),videos:d().arrayOf(d().string)})),title:d().string.isRequired});var He=e=>{let{className:t,project:n}=e;return o.createElement("article",{className:i()("project","container-md",t)},o.createElement("section",null,o.createElement("h1",null,n.title)),o.createElement("section",null,n.description&&o.createElement("p",null,n.description),n.description_long&&n.description_long.map((e=>o.createElement("p",{key:e},e)))),n.details&&o.createElement("section",null,o.createElement("p",{className:"font-sm"},n.details.map(((e,t)=>o.createElement(o.Fragment,{key:e.key},0!==t&&o.createElement("br",null),o.createElement("em",null,e.key)," ",e.value))))),n.buttons&&o.createElement("section",null,o.createElement(r.e2,null,n.buttons.map((e=>o.createElement(r.N_,{external:!0,to:e.link,key:e.name,unstyled:!0},o.createElement(r.$n,{icon:e.icon&&"left",iconName:e.icon,size:r.$n.size.small},e.name)))))),n.sections&&n.sections.map(((e,t)=>o.createElement("section",{key:"section-"+t},e.title&&o.createElement("p",{className:"font-lg"},e.link?o.createElement(r.N_,{external:!0,href:e.link},o.createElement("b",null,e.title)):o.createElement("b",null,e.title)),e.mainImage&&o.createElement(r.vb,{alt:n.title+" Screenshot",width:e.mainImage.sharp.original.width,height:e.mainImage.sharp.original.height,src:e.mainImage.sharp.original.src}),e.mainVideo&&o.createElement(r.QN,{origin:"https://adamgraham.io",videoId:e.mainVideo}),e.paragraphs&&e.paragraphs.map(((e,n)=>o.createElement("p",{className:"font-sm",key:"section-"+t+"-paragraph-"+n},e))),e.gallery&&o.createElement(r.i_,{images:e.gallery.map((e=>({width:e.sharp.original.width,height:e.sharp.original.height,src:e.sharp.original.src}))),minWidth:128}),e.videos&&e.videos.map((e=>o.createElement(r.QN,{className:"margin-bottom-lg",key:e,origin:"https://adamgraham.io",videoId:e})))))))};var Ze=e=>{let{category:t,gallery:n,location:r,project:a}=e;const{0:i,1:l}=(0,o.useState)(c(t)),m=s(t,n,i,l);return o.createElement(u.Provider,{value:m},o.createElement(Pe,{id:a.id,location:r,metadata:{url:"https://adamgraham.io/"+a.category+"/"+a.id,title:"Adam Graham • "+a.title,description:a.description_short||a.description,image:a.image&&a.image.sharp.original.src}},o.createElement(He,{project:a})))}},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var l,c,s,u;if(Array.isArray(e)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(!i(e[c],o[c]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!i(c.value[1],o.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(e[c]!==o[c])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((l=(s=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(c=l;0!=c--;)if(!Object.prototype.hasOwnProperty.call(o,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=l;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],o[s[c]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2098:function(e,t,n){"use strict";var r,a=n(6540),i=(r=a)&&"object"==typeof r&&"default"in r?r.default:r;function o(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 u(){c=e(s.map((function(e){return e.props}))),m.canUseDOM?t(c):n&&(c=n(c))}var m=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 o=a.prototype;return o.UNSAFE_componentWillMount=function(){s.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},o.render=function(){return i.createElement(r,this.props)},a}(a.PureComponent);return o(m,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),o(m,"canUseDOM",l),m}}},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t {\r\n return useMemo(\r\n () => ({\r\n category,\r\n gallery,\r\n slideIndex,\r\n currentSlide: gallery[slideIndex],\r\n setSlideIndex: (index) => {\r\n index = Math.min(Math.max(index, 0), gallery.length - 1);\r\n setSessionIndex(category, index);\r\n setSlideIndex(index);\r\n navigate(`/${category}`);\r\n },\r\n }),\r\n [category, gallery, slideIndex]\r\n );\r\n};\r\n\r\nconst GalleryContext = createContext({\r\n category: '',\r\n gallery: [],\r\n slideIndex: 0,\r\n currentSlide: null,\r\n setSlideIndex: () => {},\r\n});\r\n\r\nexport default GalleryContext;\r\n","import PropTypes from 'prop-types';\r\n\r\nexport const ImageProps = PropTypes.shape({\r\n sharp: PropTypes.shape({\r\n original: PropTypes.shape({\r\n src: PropTypes.string.isRequired,\r\n width: PropTypes.number,\r\n height: PropTypes.number,\r\n }),\r\n }),\r\n});\r\n","import { Button, Link, ProgressiveImage } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ImageProps } from '../types/image';\r\nimport '../styles/slide.css';\r\n\r\nconst Slide = ({ className, slide }) => {\r\n const offline = typeof navigator !== 'undefined' && !navigator.onLine;\r\n const projectPath = `/${slide.category}/${slide.id}`;\r\n return (\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

{slide.date}

\r\n

{slide.title}

\r\n

{slide.description_short || slide.description}

\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport const SlideProps = PropTypes.shape({\r\n category: PropTypes.string.isRequired,\r\n date: PropTypes.string,\r\n description: PropTypes.string,\r\n description_short: PropTypes.string,\r\n id: PropTypes.string.isRequired,\r\n image: ImageProps.isRequired,\r\n imageAltText: PropTypes.string,\r\n imageBorder: PropTypes.string,\r\n title: PropTypes.string.isRequired,\r\n});\r\n\r\nSlide.propTypes = {\r\n className: PropTypes.string,\r\n slide: SlideProps,\r\n};\r\n\r\nexport default Slide;\r\n","import chevronLeftIcon from './images/icons/chevron-left.svg';\r\nimport chevronRightIcon from './images/icons/chevron-right.svg';\r\nimport galleryIcon from './images/icons/fullscreen.svg';\r\nimport galleryOpenIcon from './images/icons/fullscreen-exit.svg';\r\nimport menuIcon from './images/icons/menu.svg';\r\nimport menuOpenIcon from './images/icons/menu-open.svg';\r\n\r\nconst icons = {\r\n chevronLeft: chevronLeftIcon,\r\n chevronRight: chevronRightIcon,\r\n gallery: galleryIcon,\r\n galleryOpen: galleryOpenIcon,\r\n menu: menuIcon,\r\n menuOpen: menuOpenIcon,\r\n};\r\n\r\nexport default icons;\r\n","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDhweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE0LjcxIDYuNzFjLS4zOS0uMzktMS4wMi0uMzktMS40MSAwTDguNzEgMTEuM2MtLjM5LjM5LS4zOSAxLjAyIDAgMS40MWw0LjU5IDQuNTljLjM5LjM5IDEuMDIuMzkgMS40MSAwIC4zOS0uMzkuMzktMS4wMiAwLTEuNDFMMTAuODMgMTJsMy44OC0zLjg4Yy4zOS0uMzkuMzgtMS4wMyAwLTEuNDF6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDhweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTkuMjkgNi43MWMtLjM5LjM5LS4zOSAxLjAyIDAgMS40MUwxMy4xNyAxMmwtMy44OCAzLjg4Yy0uMzkuMzktLjM5IDEuMDIgMCAxLjQxLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuNTktNC41OWMuMzktLjM5LjM5LTEuMDIgMC0xLjQxTDEwLjcgNi43Yy0uMzgtLjM4LTEuMDItLjM4LTEuNDEuMDF6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik03IDE0SDV2NWg1di0ySDd2LTN6bS0yLTRoMlY3aDNWNUg1djV6bTEyIDdoLTN2Mmg1di01aC0ydjN6TTE0IDV2MmgzdjNoMlY1aC01eiIvPjwvc3ZnPg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik01IDE2aDN2M2gydi01SDV2MnptMy04SDV2Mmg1VjVIOHYzem02IDExaDJ2LTNoM3YtMmgtNXY1em0yLTExVjVoLTJ2NWg1VjhoLTN6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0zIDE4aDE4di0ySDN2MnptMC01aDE4di0ySDN2MnptMC03djJoMThWNkgzeiIvPjwvc3ZnPg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTN2LTJIM3Yyem0wLTVoMTB2LTJIM3Yyem0wLTd2MmgxM1Y2SDN6bTE4IDkuNTlMMTcuNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg==\"","import { useMediaQuery } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\nimport Slide from './Slide';\r\nimport icons from '../icons';\r\nimport '../styles/gallery.css';\r\n\r\nconst Gallery = ({ className }) => {\r\n const context = useContext(GalleryContext);\r\n const verticalLayout = useMediaQuery('(max-width: 1365px)');\r\n return (\r\n \r\n context.setSlideIndex(context.slideIndex - 1)}\r\n >\r\n {context.slideIndex > 0 && \"\"}\r\n \r\n
\r\n {context.currentSlide && }\r\n
\r\n = context.gallery.length - 1}\r\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\r\n >\r\n {context.slideIndex < context.gallery.length - 1 && (\r\n \"\"\r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nGallery.propTypes = {\r\n className: PropTypes.string,\r\n};\r\n\r\nexport default Gallery;\r\n","export const navLinks = [\r\n {\r\n name: 'Games',\r\n to: '/games',\r\n },\r\n {\r\n name: 'Visual Art',\r\n to: '/art',\r\n },\r\n {\r\n name: 'Web Design',\r\n to: '/websites',\r\n },\r\n {\r\n name: 'Emerging Tech',\r\n to: '/tech',\r\n },\r\n {\r\n name: 'Presentations',\r\n to: '/presentations',\r\n },\r\n {\r\n name: 'Software',\r\n to: 'https://github.com/adamgraham',\r\n rightIcon: 'open_in_new',\r\n ElementType: 'a',\r\n external: true,\r\n },\r\n];\r\n\r\nexport const socialLinks = [\r\n {\r\n key: 'github',\r\n name: 'GitHub',\r\n url: 'https://github.com/adamgraham',\r\n },\r\n {\r\n key: 'linkedIn',\r\n name: 'LinkedIn',\r\n url: 'https://www.linkedin.com/in/adamzigurous',\r\n },\r\n {\r\n key: 'instagram',\r\n name: 'Instagram',\r\n url: 'http://instagram.com/adam.zigurous',\r\n },\r\n {\r\n key: 'twitter',\r\n name: 'Twitter',\r\n url: 'https://twitter.com/Zigurous',\r\n },\r\n {\r\n key: 'email',\r\n name: 'Email',\r\n url: 'mailto:adam@zigurous.com',\r\n },\r\n];\r\n","export const MENU_TYPE_NONE = 'none';\r\nexport const MENU_TYPE_LIST = 'list';\r\nexport const MENU_TYPE_GALLERY = 'gallery';\r\n","export function titleCase(title) {\r\n return title.replace(/\\b\\w/g, (l) => l.toUpperCase());\r\n}\r\n","import { Link, NavBar, SocialNavLinks } from '@zigurous/react-components';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\nimport icons from '../icons';\r\nimport { navLinks, socialLinks } from '../links';\r\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\r\nimport { titleCase } from '../utils/formatting';\r\n\r\nconst MenuBar = ({ location, menuType, setMenuType }) => {\r\n const context = useContext(GalleryContext);\r\n const showMenu = menuType === MENU_TYPE_LIST;\r\n const showGallery = menuType === MENU_TYPE_GALLERY;\r\n return (\r\n
\r\n
\r\n \r\n Adam Graham\r\n \r\n {context.slideIndex === undefined && !fullscreen && (\r\n \r\n {titleCase(category)}\r\n \r\n )}\r\n {context.slideIndex !== undefined && (\r\n \r\n context.setSlideIndex(context.slideIndex - 1)}\r\n >\r\n \"\"\r\n \r\n = context.gallery.length - 1}\r\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\r\n >\r\n \"\"\r\n \r\n
\r\n )}\r\n \r\n \r\n
\r\n \r\n \r\n setMenuType(showGallery ? MENU_TYPE_NONE : MENU_TYPE_GALLERY)\r\n }\r\n >\r\n \"\"\r\n \r\n \r\n setMenuType(showMenu ? MENU_TYPE_NONE : MENU_TYPE_LIST)\r\n }\r\n >\r\n \"\"\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nMenuBar.propTypes = {\r\n location: PropTypes.object,\r\n menuType: PropTypes.oneOf([\r\n MENU_TYPE_NONE,\r\n MENU_TYPE_LIST,\r\n MENU_TYPE_GALLERY,\r\n ]),\r\n setMenuType: PropTypes.func,\r\n};\r\n\r\nexport default MenuBar;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\n\r\nconst MenuGallery = ({ onSelect, open }) => {\r\n const context = useContext(GalleryContext);\r\n return (\r\n \r\n
\r\n {context.gallery.map((slide, index) => (\r\n {\r\n context.setSlideIndex(index);\r\n onSelect(index);\r\n }}\r\n >\r\n \r\n \r\n ))}\r\n
\r\n \r\n );\r\n};\r\n\r\nMenuGallery.propTypes = {\r\n onSelect: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n\r\nexport default MenuGallery;\r\n","import { Link } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { navLinks } from '../links';\r\n\r\nconst MenuList = ({ onLink, open }) => {\r\n return (\r\n \r\n
    \r\n {navLinks.map((link) => (\r\n
  • \r\n \r\n {link.name}\r\n \r\n
  • \r\n ))}\r\n
\r\n \r\n );\r\n};\r\n\r\nMenuList.propTypes = {\r\n onLink: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n\r\nexport default MenuList;\r\n","import { useModalOverlay } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useCallback, useState } from 'react';\r\nimport MenuBar from './MenuBar';\r\nimport MenuGallery from './MenuGallery';\r\nimport MenuList from './MenuList';\r\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\r\nimport '../styles/menu.css';\r\n\r\nconst Menu = ({ location }) => {\r\n const [menuType, setMenuType] = useState(MENU_TYPE_NONE);\r\n const fullscreen = menuType !== MENU_TYPE_NONE;\r\n const listOpen = menuType === MENU_TYPE_LIST;\r\n const galleryOpen = menuType === MENU_TYPE_GALLERY;\r\n\r\n const closeMenu = useCallback(() => {\r\n setMenuType(MENU_TYPE_NONE);\r\n }, []);\r\n\r\n useModalOverlay(fullscreen, true);\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nMenu.propTypes = {\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Menu;\r\n","import PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\nimport isEqual from 'react-fast-compare';\nimport React from 'react';\nimport objectAssign from 'object-assign';\n\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\n\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\n\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\n\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\n\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\n\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\n\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\n\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (encode === false) {\n return String(str);\n }\n\n return String(str).replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\n\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\n\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n\n return innermostBaseTag;\n }, []);\n};\n\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n\n var value = tag[primaryAttributeKey].toLowerCase();\n\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n\n approvedSeenTags[attributeKey] = tagUnion;\n }\n\n return approvedTags;\n }, []).reverse();\n};\n\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n\n return null;\n};\n\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\n\nvar rafPolyfill = function () {\n var clock = Date.now();\n\n return function (callback) {\n var currentTime = Date.now();\n\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\n\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\n\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;\n\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;\n\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\n\nvar _helmetCallback = null;\n\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\n\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n updateTitle(title, titleAttributes);\n\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n\n var addedTags = {};\n var removedTags = {};\n\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n\n\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n\n cb && cb();\n\n onChangeClientState(newState, addedTags, removedTags);\n};\n\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\n\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n\n if (!elementTag) {\n return;\n }\n\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\n\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\n\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\n\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\";\n};\n\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"\");\n }, \"\");\n};\n\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\n\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\n\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n\n return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = { __html: content };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n\n return React.createElement(type, mappedTag);\n });\n};\n\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\n\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)\n };\n};\n\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !isEqual(this.props, nextProps);\n };\n\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n\n return newFlattenedProps;\n };\n\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.\");\n }\n\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``} ) Refer to our API for more information.\");\n }\n }\n\n return true;\n };\n\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n\n var arrayTypeChildren = {};\n\n React.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n\n _this2.warnOnInvalidChildren(child, nestedChildren);\n\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n\n var newProps = _extends({}, props);\n\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n\n return React.createElement(Component, newProps);\n };\n\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n\n\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \" console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(React.Component), _class.propTypes = {\n base: PropTypes.object,\n bodyAttributes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n defaultTitle: PropTypes.string,\n defer: PropTypes.bool,\n encodeSpecialCharacters: PropTypes.bool,\n htmlAttributes: PropTypes.object,\n link: PropTypes.arrayOf(PropTypes.object),\n meta: PropTypes.arrayOf(PropTypes.object),\n noscript: PropTypes.arrayOf(PropTypes.object),\n onChangeClientState: PropTypes.func,\n script: PropTypes.arrayOf(PropTypes.object),\n style: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string,\n titleAttributes: PropTypes.object,\n titleTemplate: PropTypes.string\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n\n return mappedState;\n }, _temp;\n};\n\nvar NullComponent = function NullComponent() {\n return null;\n};\n\nvar HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\n\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\n\nexport default HelmetExport;\nexport { HelmetExport as Helmet };\n","import { graphql, useStaticQuery } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport * as React from 'react';\r\nimport { Helmet } from 'react-helmet';\r\n\r\nconst query = graphql`\r\n query Metadata {\r\n site {\r\n metadata: siteMetadata {\r\n title\r\n description\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Metadata = (props) => {\r\n const queryData = useStaticQuery(query);\r\n const { metadata: siteMetadata } = queryData.site;\r\n const metadata = { ...siteMetadata, ...props };\r\n return (\r\n \r\n {/* General tags */}\r\n {metadata.title}\r\n \r\n {metadata.image && }\r\n\r\n {/* Open Graph tags */}\r\n {metadata.url && }\r\n \r\n \r\n \r\n {metadata.image && }\r\n\r\n {/* Twitter Card tags */}\r\n \r\n \r\n \r\n \r\n {metadata.image && }\r\n \r\n );\r\n};\r\n\r\nMetadata.propTypes = {\r\n description: PropTypes.string,\r\n image: PropTypes.string,\r\n title: PropTypes.string,\r\n url: PropTypes.string,\r\n};\r\n\r\nexport default Metadata;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport Menu from './Menu';\r\nimport Metadata from './Metadata';\r\n\r\nconst Page = ({ children, className, id, location, metadata }) => (\r\n
\r\n \r\n
\r\n {children}\r\n
\r\n \r\n
\r\n);\r\n\r\nPage.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n id: PropTypes.string,\r\n location: PropTypes.object,\r\n metadata: PropTypes.object,\r\n};\r\n\r\nexport default Page;\r\n","import PropTypes from 'prop-types';\r\nimport React, { useState } from 'react';\r\nimport Gallery from './Gallery';\r\nimport GalleryContext, { useContext } from './GalleryContext';\r\nimport Page from './Page';\r\nimport { SlideProps } from './Slide';\r\nimport { titleCase } from '../utils/formatting';\r\nimport { getSessionIndex } from '../utils/session';\r\n\r\nconst GalleryPage = ({ category, gallery, location }) => {\r\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\r\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nGalleryPage.propTypes = {\r\n category: PropTypes.string,\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default GalleryPage;\r\n","import { Button, ButtonGroup, EmbeddedYouTube, ImageGallery, Link, ProgressiveImage } from '@zigurous/react-components'; // prettier-ignore\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ImageProps } from '../types/image';\r\nimport '../styles/project.css';\r\n\r\nconst Project = ({ className, project }) => (\r\n
\r\n
\r\n

{project.title}

\r\n
\r\n
\r\n {project.description &&

{project.description}

}\r\n {project.description_long &&\r\n project.description_long.map((description) => (\r\n

{description}

\r\n ))}\r\n
\r\n {project.details && (\r\n
\r\n

\r\n {project.details.map((detail, index) => (\r\n \r\n {index !== 0 &&
}\r\n {detail.key} {detail.value}\r\n
\r\n ))}\r\n

\r\n
\r\n )}\r\n {project.buttons && (\r\n
\r\n \r\n {project.buttons.map((button) => (\r\n \r\n \r\n {button.name}\r\n \r\n \r\n ))}\r\n \r\n
\r\n )}\r\n {project.sections &&\r\n project.sections.map((section, index) => (\r\n
\r\n {section.title && (\r\n

\r\n {section.link ? (\r\n \r\n {section.title}\r\n \r\n ) : (\r\n {section.title}\r\n )}\r\n

\r\n )}\r\n {section.mainImage && (\r\n \r\n )}\r\n {section.mainVideo && (\r\n \r\n )}\r\n {section.paragraphs &&\r\n section.paragraphs.map((paragraph, paragraphIndex) => (\r\n \r\n {paragraph}\r\n

\r\n ))}\r\n {section.gallery && (\r\n ({\r\n width: image.sharp.original.width,\r\n height: image.sharp.original.height,\r\n src: image.sharp.original.src,\r\n }))}\r\n minWidth={128}\r\n />\r\n )}\r\n {section.videos &&\r\n section.videos.map((video) => (\r\n \r\n ))}\r\n
\r\n ))}\r\n
\r\n);\r\n\r\nexport const ProjectProps = PropTypes.shape({\r\n buttons: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n name: PropTypes.string.isRequired,\r\n link: PropTypes.string.isRequired,\r\n icon: PropTypes.string,\r\n })\r\n ),\r\n category: PropTypes.string.isRequired,\r\n date: PropTypes.string,\r\n description: PropTypes.string,\r\n description_short: PropTypes.string,\r\n description_long: PropTypes.arrayOf(PropTypes.string),\r\n details: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n key: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired,\r\n })\r\n ),\r\n id: PropTypes.string.isRequired,\r\n image: ImageProps.isRequired,\r\n sections: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n title: PropTypes.string,\r\n link: PropTypes.string,\r\n mainImage: ImageProps,\r\n mainVideo: PropTypes.string,\r\n paragraphs: PropTypes.arrayOf(PropTypes.string),\r\n gallery: PropTypes.arrayOf(ImageProps),\r\n videos: PropTypes.arrayOf(PropTypes.string),\r\n })\r\n ),\r\n title: PropTypes.string.isRequired,\r\n});\r\n\r\nProject.propTypes = {\r\n className: PropTypes.string,\r\n project: ProjectProps,\r\n};\r\n\r\nexport default Project;\r\n","import PropTypes from 'prop-types';\r\nimport React, { useState } from 'react';\r\nimport GalleryContext, { useContext } from './GalleryContext';\r\nimport Page from './Page';\r\nimport Project, { ProjectProps } from './Project';\r\nimport { SlideProps } from './Slide';\r\nimport { getSessionIndex } from '../utils/session';\r\n\r\nconst ProjectPage = ({ category, gallery, location, project }) => {\r\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\r\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nProjectPage.propTypes = {\r\n category: PropTypes.string,\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n location: PropTypes.object,\r\n project: ProjectProps,\r\n};\r\n\r\nexport default ProjectPage;\r\n","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","'use strict';\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar React = require('react');\nvar React__default = _interopDefault(React);\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n\n if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {\n throw new Error('Expected mapStateOnServer to either be undefined or a function.');\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n\n if (SideEffect.canUseDOM) {\n handleStateChangeOnClient(state);\n } else if (mapStateOnServer) {\n state = mapStateOnServer(state);\n }\n }\n\n var SideEffect =\n /*#__PURE__*/\n function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n // Expose canUseDOM so tests can monkeypatch it\n SideEffect.peek = function peek() {\n return state;\n };\n\n SideEffect.rewind = function rewind() {\n if (SideEffect.canUseDOM) {\n throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');\n }\n\n var recordedState = state;\n state = undefined;\n mountedInstances = [];\n return recordedState;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return React__default.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(React.PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n _defineProperty(SideEffect, \"canUseDOM\", canUseDOM);\n\n return SideEffect;\n };\n}\n\nmodule.exports = withSideEffect;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["module","exports","Object","assign","getSessionIndex","category","sessionStorage","Number","parseInt","getItem","useContext","gallery","slideIndex","setSlideIndex","useMemo","currentSlide","index","Math","min","max","length","setItem","setSessionIndex","navigate","createContext","ImageProps","PropTypes","sharp","original","src","isRequired","width","height","date","description","description_short","id","image","imageAltText","imageBorder","title","_ref","className","slide","offline","navigator","onLine","projectPath","React","classNames","Link","ElementType","GatsbyLink","to","unstyled","ProgressiveImage","alt","animated","showLoadingSpinner","Button","size","small","chevronLeft","chevronRight","galleryOpen","menu","menuOpen","context","GalleryContext","verticalLayout","useMediaQuery","disabled","onClick","icons","Slide","navLinks","name","rightIcon","external","socialLinks","key","url","MENU_TYPE_NONE","MENU_TYPE_LIST","MENU_TYPE_GALLERY","titleCase","replace","l","toUpperCase","location","menuType","setMenuType","showMenu","showGallery","undefined","fullscreen","style","marginLeft","NavBar","links","LinkElementType","SocialNavLinks","iconSize","iconInnerPadding","onSelect","open","map","onLink","link","activeClassName","tabIndex","clock","Component","_class","_temp","useState","listOpen","closeMenu","useCallback","useModalOverlay","MenuBar","MenuList","MenuGallery","ATTRIBUTE_NAMES","TAG_NAMES","BASE","BODY","HEAD","HTML","LINK","META","NOSCRIPT","SCRIPT","STYLE","TITLE","TAG_PROPERTIES","keys","REACT_TAG_MAP","accesskey","charset","class","contenteditable","contextmenu","itemprop","tabindex","HELMET_PROPS","HTML_TAG_MAP","reduce","obj","SELF_CLOSING_TAGS","HELMET_ATTRIBUTE","_typeof","Symbol","iterator","constructor","prototype","createClass","defineProperties","target","props","i","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","_extends","arguments","source","hasOwnProperty","call","objectWithoutProperties","indexOf","encodeSpecialCharacters","str","String","getTitleFromPropsList","propsList","innermostTitle","getInnermostProperty","innermostTemplate","Array","isArray","join","innermostDefaultTitle","getOnChangeClientState","getAttributesFromPropsList","tagType","filter","tagAttrs","current","getBaseTagFromPropsList","primaryAttributes","reverse","innermostBaseTag","tag","lowerCaseAttributeKey","toLowerCase","concat","getTagsFromPropsList","tagName","approvedSeenTags","warn","approvedTags","instanceTags","instanceSeenTags","primaryAttributeKey","attributeKey","value","forEach","push","tagUnion","property","rafPolyfill","Date","now","callback","currentTime","setTimeout","cafPolyfill","clearTimeout","requestAnimationFrame","window","bind","webkitRequestAnimationFrame","mozRequestAnimationFrame","g","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","msg","console","_helmetCallback","commitTagChanges","newState","cb","baseTag","bodyAttributes","htmlAttributes","linkTags","metaTags","noscriptTags","onChangeClientState","scriptTags","styleTags","titleAttributes","updateAttributes","updateTitle","tagUpdates","updateTags","addedTags","removedTags","_tagUpdates$tagType","newTags","oldTags","flattenArray","possibleArray","attributes","document","elementTag","getElementsByTagName","helmetAttributeString","getAttribute","helmetAttributes","split","attributesToRemove","attributeKeys","attribute","setAttribute","indexToSave","splice","_i","removeAttribute","type","tags","headElement","head","querySelector","tagNodes","querySelectorAll","slice","indexToDelete","newElement","createElement","innerHTML","styleSheet","cssText","appendChild","createTextNode","some","existingTag","isEqualNode","parentNode","removeChild","generateElementAttributesAsString","attr","convertElementAttributestoReactProps","initProps","getMethodsForTag","encode","toComponent","_initProps","toString","attributeString","flattenedTitle","generateTitleAsString","_mappedTag","mappedTag","mappedAttribute","content","dangerouslySetInnerHTML","__html","generateTagsAsReactComponent","attributeHtml","string","tagContent","isSelfClosing","generateTagsAsString","mapStateOnServer","_ref$title","base","meta","noscript","script","HelmetSideEffects","defer","HelmetExport","_React$Component","HelmetWrapper","instance","TypeError","classCallCheck","this","self","ReferenceError","possibleConstructorReturn","apply","subClass","superClass","create","setPrototypeOf","__proto__","inherits","shouldComponentUpdate","nextProps","mapNestedChildrenToProps","child","nestedChildren","Error","flattenArrayTypeChildren","_babelHelpers$extends","arrayTypeChildren","newChildProps","mapObjectTypeChildren","_ref2","_babelHelpers$extends2","_babelHelpers$extends3","newProps","mapArrayTypeChildrenToProps","newFlattenedProps","arrayChildName","_babelHelpers$extends4","warnOnInvalidChildren","mapChildrenToProps","children","_this2","_child$props","initAttributes","convertReactPropstoHtmlAttributes","render","_props","set","canUseDOM","propTypes","defaultTitle","titleTemplate","defaultProps","peek","rewind","mappedState","renderStatic","queryData","useStaticQuery","metadata","siteMetadata","site","Helmet","Metadata","Menu","Provider","Page","Gallery","buttons","icon","description_long","details","sections","mainImage","mainVideo","paragraphs","videos","project","detail","ButtonGroup","button","iconName","section","href","EmbeddedYouTube","origin","videoId","paragraph","paragraphIndex","ImageGallery","images","minWidth","video","Project","hasElementType","Element","hasMap","Map","hasSet","Set","hasArrayBuffer","ArrayBuffer","isView","equal","a","b","it","entries","next","done","has","get","RegExp","flags","valueOf","$$typeof","error","message","match","ex","React__default","_defineProperty","reducePropsToState","handleStateChangeOnClient","WrappedComponent","state","mountedInstances","emitChange","SideEffect","_PureComponent","recordedState","_proto","UNSAFE_componentWillMount","componentDidUpdate","componentWillUnmount","PureComponent","displayName","getDisplayName","hasOwn","classes","arg","appendClass","parseValue","includes","newClass","default"],"sourceRoot":""} \ No newline at end of file diff --git a/404.html b/404.html index 46902b4..4db1fb4 100644 --- a/404.html +++ b/404.html @@ -1,17 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/404/index.html b/404/index.html index d958aa5..5674192 100644 --- a/404/index.html +++ b/404/index.html @@ -1,17 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/577-7690686d5a1828513611.js b/577-7690686d5a1828513611.js deleted file mode 100644 index b0ba148..0000000 --- a/577-7690686d5a1828513611.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[577],{577:function(t,e,n){n.r(e),n.d(e,{getCLS:function(){return f},getFCP:function(){return p},getFID:function(){return v},getLCP:function(){return l},getTTFB:function(){return h}});var i=function(t,e){return{name:t,value:void 0===e?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},a=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},r=function(t,e){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},o=function(t){addEventListener("pageshow",(function(e){e.persisted&&t(e)}),!0)},u="function"==typeof WeakSet?new WeakSet:new Set,c=function(t,e,n){var i;return function(){e.value>=0&&(n||u.has(e)||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},f=function(t,e){var n,u=i("CLS",0),f=function(t){t.hadRecentInput||(u.value+=t.value,u.entries.push(t),n())},s=a("layout-shift",f);s&&(n=c(t,u,e),r((function(){s.takeRecords().map(f),n()})),o((function(){u=i("CLS",0),n=c(t,u,e)})))},s=-1,d=function(){r((function(t){var e=t.timeStamp;s=e}),!0)},m=function(){return s<0&&((s=self.webVitals.firstHiddenTime)===1/0&&d(),o((function(){setTimeout((function(){s="hidden"===document.visibilityState?0:1/0,d()}),0)}))),{get timeStamp(){return s}}},p=function(t,e){var n,r=m(),f=i("FCP"),s=function(t){"first-contentful-paint"===t.name&&(p&&p.disconnect(),t.startTime=0&&(n||a.has(e)||\"hidden\"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},o=function(a,o){var u,c=t(\"CLS\",0),s=function(t){t.hadRecentInput||(c.value+=t.value,c.entries.push(t),u())},f=e(\"layout-shift\",s);f&&(u=r(a,c,o),n((function(){f.takeRecords().map(s),u()})),i((function(){c=t(\"CLS\",0),u=r(a,c,o)})))},u=-1,c=function(){n((function(t){var e=t.timeStamp;u=e}),!0)},s=function(){return u<0&&((u=self.webVitals.firstHiddenTime)===1/0&&c(),i((function(){setTimeout((function(){u=\"hidden\"===document.visibilityState?0:1/0,c()}),0)}))),{get timeStamp(){return u}}},f=function(n,o){var u,c=s(),f=t(\"FCP\"),d=function(t){\"first-contentful-paint\"===t.name&&(v&&v.disconnect(),t.startTime=0&&this.changeListeners.splice(t,1)},e}(),p=i.createContext(new m);p.Provider,p.Consumer;var h=n(312),f=n.n(h);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function A(){return void 0!==n.g.window?n.g.window.innerWidth:0}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.window.self;return e===n.g.window.top||function(){try{return n.g.window.location.hostname!==n.g.window.parent.location.hostname}catch(e){return!0}}()?e:P(e.parent)}var M=300,F=27,L=37,j=39,z=function(e){!function(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&&k(e,t)}(s,e);var t,r,a,o=C(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=i.createRef(),t.zoomInBtn=i.createRef(),t.zoomOutBtn=i.createRef(),t.caption=i.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(x(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(x(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(x(t)),t.handleKeyInput=t.handleKeyInput.bind(x(t)),t.handleMouseUp=t.handleMouseUp.bind(x(t)),t.handleMouseDown=t.handleMouseDown.bind(x(t)),t.handleMouseMove=t.handleMouseMove.bind(x(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(x(t)),t.handleTouchStart=t.handleTouchStart.bind(x(t)),t.handleTouchMove=t.handleTouchMove.bind(x(t)),t.handleTouchEnd=t.handleTouchEnd.bind(x(t)),t.handlePointerEvent=t.handlePointerEvent.bind(x(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(x(t)),t.handleWindowResize=t.handleWindowResize.bind(x(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(x(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(x(t)),t.requestClose=t.requestClose.bind(x(t)),t.requestMoveNext=t.requestMoveNext.bind(x(t)),t.requestMovePrev=t.requestMovePrev.bind(x(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return t=s,r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=P(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach((function(n){t.props[n.name]!==e[n.name]&&(t.moveRequested=!1)})),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,n=!1,r={},a={};this.getSrcTypes().forEach((function(i){e[i.name]!==t.props[i.name]&&(n=!0,r[e[i.name]]=!0,a[t.props[i.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(r).forEach((function(e){!(e in a)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==r})),e()}),t);return this.timeouts.push(r),r}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),a=r.height-2*this.props.imagePadding,i=r.width-2*this.props.imagePadding;return n||(a=Math.min(a,t),i=Math.min(i,e)),i/a>e/t?{width:e*a/t,height:a}:{width:i,height:t*i/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),a=0,i=0;return{maxX:a=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2,maxY:i=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,minX:-1*a,minY:-1*i}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:A(),height:void 0!==n.g.window?n.g.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var r=Math.max(0,Math.min(M,e));if(r!==this.state.zoomLevel)if(0!==r){var a=this.getBestImageForType("mainSrc");if(null!==a){var i=this.getZoomMultiplier(),o=this.getZoomMultiplier(r),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,c=void 0!==n?n-s.top:s.height/2,u=(s.width-a.width*i)/2,d=(s.height-a.height*i)/2,m=l-(l-(u-this.state.offsetX))/i*o,p=c-(c-(d-this.state.offsetY))/i*o,h=(s.width-a.width*o)/2-m,f=(s.height-a.height*o)/2-p;if(3!==this.currentAction){var g=this.getMaxOffsets();this.state.zoomLevel>r&&(h=Math.max(g.minX,Math.min(g.maxX,h)),f=Math.max(g.minY,Math.min(g.maxY,f)))}this.setState({zoomLevel:r,offsetX:h,offsetY:f})}}else this.setState({zoomLevel:r,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),n=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),n=500,this.scrollX=0)),0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),n)))}},{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0)}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&s.isTargetMatchImage(e.target)&&(this.addPointer(s.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[s.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(s.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":s.isTargetMatchImage(e.target)&&(this.addPointer(s.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[s.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(s.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&s.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(s.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return s.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(s.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,r=this.moveStartX-t+this.moveStartOffsetX,a=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===r&&this.state.offsetY===a||this.setState({offsetX:r,offsetY:a})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*r)){if(n<200&&n0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=O(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=O(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return{x:t.x-(t.x-n.x)/2,y:t.y-(t.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n0&&t+a>=r||e.deltaY<0&&a<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var a=this;if(this.isImageLoaded(t))this.setTimeout((function(){r()}),1);else{var i=new n.g.Image;this.props.imageCrossOrigin&&(i.crossOrigin=this.props.imageCrossOrigin),i.onerror=function(n){a.props.onImageLoadError(t,e,n),a.setState((function(t){return{loadErrorStatus:v(v({},t.loadErrorStatus),{},b({},e,!0))}})),r(n)},i.onload=function(){a.props.onImageLoad(t,e,i),a.imageCache[t]={loaded:!0,width:i.width,height:i.height},r()},i.src=t}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach((function(n){var r=n.name;t[r]&&e.state.loadErrorStatus[r]&&e.setState((function(e){return{loadErrorStatus:v(v({},e.loadErrorStatus),{},b({},r,!1))}})),t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(r,t[r],function(t,n){return function(r){r||e.props[t]!==n||e.didUnmount||e.forceUpdate()}}(r,t[r]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,a=t.animationDuration,o=t.clickOutsideToClose,l=t.discourageDownloads,c=t.enableZoom,u=t.imageTitle,d=t.nextSrc,m=t.prevSrc,p=t.toolbarButtons,h=t.reactModalStyle,g=t.onAfterOpen,y=t.imageCrossOrigin,b=t.reactModalProps,E=t.loader,k=this.state,x=k.zoomLevel,C=k.offsetX,O=k.offsetY,S=k.isClosing,_=k.loadErrorStatus,A=this.getLightboxRect(),P={};!r&&this.isAnimating()&&(P=v(v({},P),{},{transition:"transform ".concat(a,"ms")}));var F={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;F[t]=n}));var L=[],j=function(t,n,r){if(e.props[t]){var a,o=e.getBestImageForType(t),c=v(v({},P),s.getTransform(v(v({},r),o)));if(x>0&&(c.cursor="move"),null===o&&(a=_,Object.keys(a).some((function(e){return a[e]}))))L.push(i.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:c,key:e.props[t]+F[t]},i.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==o){var d=o.src;l?(c.backgroundImage="url('".concat(d,"')"),L.push(i.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:c,key:d+F[t]},i.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):L.push(i.createElement("img",w({},y?{crossOrigin:y}:{},{className:"".concat(n," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:c,src:d,key:d+F[t],alt:"string"==typeof u?u:N("Image"),draggable:!1})))}else{var m=void 0!==E?E:i.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},T(new Array(12)).map((function(e,t){return i.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));L.push(i.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:c,key:e.props[t]+F[t]},i.createElement("div",{className:"ril__loadingContainer"},m)))}}},z=this.getZoomMultiplier();j("nextSrc","ril-image-next ril__imageNext",{x:A.width}),j("mainSrc","ril-image-current",{x:-1*C,y:-1*O,zoom:z}),j("prevSrc","ril-image-prev ril__imagePrev",{x:-1*A.width});var I={overlay:v({zIndex:1e3,backgroundColor:"transparent"},h.overlay),content:v({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},h.content)};return i.createElement(f(),w({isOpen:!0,onRequestClose:o?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),g()},style:I,contentLabel:N("Lightbox"),appElement:void 0!==n.g.window?n.g.window.document.body:void 0},b),i.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(S?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(a,"ms"),animationDuration:"".concat(a,"ms"),animationDirection:S?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},i.createElement("div",{className:"ril-inner ril__inner",onClick:o?this.closeIfClickInner:void 0},L),m&&i.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),d&&i.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),i.createElement("div",{className:"ril-toolbar ril__toolbar"},i.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},i.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},u))),i.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},p&&p.map((function(e,t){return i.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),c&&i.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(T(x===M?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||x===M,onClick:this.isAnimating()||x===M?void 0:this.handleZoomInButtonClick})),c&&i.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(T(0===x?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===x,onClick:this.isAnimating()||0===x?void 0:this.handleZoomOutButtonClick})),i.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&i.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},i.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],a=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,r=e.y,a=void 0===r?0:r,i=e.zoom,o=void 0===i?1:i,s=e.width,l=e.targetWidth,c=n,u=A();s>u&&(c+=(u-s)/2);var d=o*(l/s);return{transform:"translate3d(".concat(c,"px,").concat(a,"px,0) scale3d(").concat(d,",").concat(d,",1)")}}}],r&&y(t.prototype,r),a&&y(t,a),s}(i.Component);z.propTypes={mainSrc:a().string.isRequired,prevSrc:a().string,nextSrc:a().string,mainSrcThumbnail:a().string,prevSrcThumbnail:a().string,nextSrcThumbnail:a().string,onCloseRequest:a().func.isRequired,onMovePrevRequest:a().func,onMoveNextRequest:a().func,onImageLoadError:a().func,onImageLoad:a().func,onAfterOpen:a().func,discourageDownloads:a().bool,animationDisabled:a().bool,animationOnKeyInput:a().bool,animationDuration:a().number,keyRepeatLimit:a().number,keyRepeatKeyupBonus:a().number,imageTitle:a().node,imageCaption:a().node,imageCrossOrigin:a().string,reactModalStyle:a().shape({}),imagePadding:a().number,wrapperClassName:a().string,toolbarButtons:a().arrayOf(a().node),clickOutsideToClose:a().bool,enableZoom:a().bool,reactModalProps:a().shape({}),nextLabel:a().string,prevLabel:a().string,zoomInLabel:a().string,zoomOutLabel:a().string,closeLabel:a().string,imageLoadErrorMessage:a().node,loader:a().node},z.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0};var I=z,R=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Discord"),i.createElement("path",{d:"M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z"})),D=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 184 184",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Email"),i.createElement("path",{d:"M160.746,24.61H23.254C10.432,24.61,0,35.042,0,47.864v88.271c0,12.822,10.432,23.254,23.254,23.254h137.492c12.822,0,23.254-10.432,23.254-23.254V47.864C184,35.042,173.568,24.61,160.746,24.61z M157.113,39.61L92,89.909L26.887,39.61H157.113z M160.746,144.39H23.254c-4.551,0-8.254-3.703-8.254-8.254V49.382l72.415,55.94c1.35,1.043,2.968,1.564,4.585,1.564s3.235-0.521,4.585-1.564L169,49.382v86.753C169,140.687,165.297,144.39,160.746,144.39z"})),$=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Facebook"),i.createElement("path",{d:"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z"})),B=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"GitHub"),i.createElement("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})),q=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Instagram"),i.createElement("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})),H=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"LinkedIn"),i.createElement("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),Y=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Patreon"),i.createElement("path",{d:"M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z"})),U=i.createElement("svg",{focusable:"false",viewBox:"0 0 25.576 30.177",width:"25.576px",height:"30.177px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 01.314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 011.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 01-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 00-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 01-.096.035H7.266z",fill:"#253b80"}),i.createElement("path",{d:"M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 00.695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 00-1.336-1.03z",fill:"#179bd7"}),i.createElement("path",{d:"M21.754 7.151a9.757 9.757 0 00-1.203-.267 15.284 15.284 0 00-2.426-.177h-7.352a1.172 1.172 0 00-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 011.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 00-1.017-.429 9.045 9.045 0 00-.277-.087z",fill:"#222d65"}),i.createElement("path",{d:"M9.614 7.699a1.169 1.169 0 011.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 011.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 00.795.932h5.791l1.454-9.225 1.564-9.906z",fill:"#253b80"})),X=i.createElement("svg",{focusable:"false",role:"img",style:{transform:"translateY(1px)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Twitch"),i.createElement("path",{d:"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"})),Z=i.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.1)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Twitter"),i.createElement("path",{d:"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"})),W=i.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"Unity"),i.createElement("path",{d:"M24 9.533L21.374 0 11.57 2.555l-1.45 2.49-2.945-.022L0 12l7.176 6.978 2.943-.023 1.454 2.49 9.8 2.554L24 14.47 22.508 12 24 9.533zM10.356 5.445l7.499-1.874-4.304 7.251H4.94l5.416-5.377zm0 13.11L4.94 13.18h8.61l4.305 7.251-7.5-1.874zm9.598.696l-4.307-7.25 4.307-7.253L22.033 12l-2.08 7.25z"})),V=i.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.125)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,"YouTube"),i.createElement("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"})),K={discord:R,email:D,facebook:$,github:B,instagram:q,linkedIn:H,patreon:Y,paypal:U,twitch:X,twitter:Z,unity:W,youtube:V},J=a().oneOfType([a().string,a().shape({key:a().string,name:a().string,color:a().string,url:a().string,icon:a().element})]),G={discord:{key:"discord",name:"Discord",color:"#7289da",url:"https://discord.gg/DdYyWVb",icon:R},email:{key:"email",name:"Email",url:"mailto:support@zigurous.com",icon:D},facebook:{key:"facebook",name:"Facebook",color:"#1877f2",url:"https://facebook.com/zigurous",icon:$},github:{key:"github",name:"GitHub",url:"https://github.com/zigurous",icon:B},instagram:{key:"instagram",name:"Instagram",color:"#e4405f",url:"https://instagram.com/zigurous",icon:q},patreon:{key:"patreon",name:"Patreon",color:"#ff424d",url:"https://patreon.com/zigurous",icon:Y},paypal:{key:"paypal",name:"PayPal",color:"#00457c",url:"https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8",icon:U},twitch:{key:"twitch",name:"Twitch",color:"#9146ff",url:"https://twitch.tv/zigurous",icon:X},twitter:{key:"twitter",name:"Twitter",color:"#1da1f2",url:"https://twitter.com/zigurous",icon:Z},unity:{key:"unity",name:"Unity",url:"https://assetstore.unity.com/publishers/51884",icon:W},youtube:{key:"youtube",name:"YouTube",color:"#ff0000",url:"https://youtube.com/c/zigurous?sub_confirmation=1",icon:V}},Q={wordmark:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 596 192"},i.createElement("path",{d:"M528.71,98.72a18.85,18.85,0,0,0-7.36-5.56,92.48,92.48,0,0,0-10.88-3.52A43,43,0,0,1,501.91,87a4.28,4.28,0,0,1-2.76-4,4.21,4.21,0,0,1,1.72-3.52,8.33,8.33,0,0,1,5-1.28A9.36,9.36,0,0,1,511.91,80a7.68,7.68,0,0,1,2.76,5.16h17c-.64-6.4-3.12-11.56-7.48-15.4S513.91,64,506.39,64a31,31,0,0,0-13.2,2.56,19.26,19.26,0,0,0-8.4,7A17.5,17.5,0,0,0,482,83.28q0,6.36,3.12,10.08a18.58,18.58,0,0,0,7.4,5.48,79.1,79.1,0,0,0,10.8,3.28A55.41,55.41,0,0,1,512,105a4.27,4.27,0,0,1,2.68,4,4.37,4.37,0,0,1-1.88,3.64,9,9,0,0,1-5.32,1.4,9.94,9.94,0,0,1-6.36-2,7.23,7.23,0,0,1-2.92-5.2H480a20.18,20.18,0,0,0,4,10.84,23.8,23.8,0,0,0,9.68,7.64,33.14,33.14,0,0,0,14,2.8,32.3,32.3,0,0,0,12.88-2.44A19.55,19.55,0,0,0,529,118.8a16.93,16.93,0,0,0,3-9.76C531.91,104.72,530.83,101.28,528.71,98.72Z"}),i.createElement("polygon",{points:"64 40.01 64 58.01 101.8 58.01 97.6 64.01 65.4 110.01 64 112.01 64 128.01 77.6 128.01 128 128.01 128 110.01 90.2 110.01 122.4 64.01 126.6 58.01 128 56.01 128 40.01 114.4 40.01 64 40.01"}),i.createElement("path",{d:"M368,64a32,32,0,1,0,32,32.16v-.24A32,32,0,0,0,368,64Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,368,112Z"}),i.createElement("path",{d:"M312,71.23V64H292v36.24a12,12,0,0,1-24,0V64H248v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V96a16,16,0,0,1,16-16h4V64.07c-.68,0-1.32-.08-2-.08A25.92,25.92,0,0,0,312,71.23Z"}),i.createElement("path",{d:"M452,83.23v17a12,12,0,0,1-24,0V64H408v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V64H452Z"}),i.createElement("path",{d:"M216,69.76A25.37,25.37,0,0,0,200,64c-15.48,0-28,14.32-28,32a35.72,35.72,0,0,0,3.4,15.32,30.58,30.58,0,0,0,10.4,12.24,24.93,24.93,0,0,0,28.4,0,18.85,18.85,0,0,0,1.8-1.32V130c0,7.72-7.16,14-16,14a17,17,0,0,1-10.4-3.4l-8.92,12.72a37.37,37.37,0,0,0,35.32,4c11.8-4.64,20-15.12,20-27.28V64H216ZM204,112a15.93,15.93,0,0,1-14.72-9.8A15.22,15.22,0,0,1,188,96a16,16,0,1,1,30.08,7.6,17.11,17.11,0,0,1-2.08,3A15.93,15.93,0,0,1,204,112Z"}),i.createElement("rect",{x:"140.01",y:"64.01",width:"20",height:"64"}),i.createElement("path",{d:"M150,36a11,11,0,0,0-10,6.16,9.83,9.83,0,0,0,0,8.64,11.16,11.16,0,0,0,20,0,9.83,9.83,0,0,0,0-8.64A11,11,0,0,0,150,36Z"})),lettermark:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i.createElement("polygon",{points:"382.81 331.67 382.81 384.03 311.24 384.03 347.9 331.67 382.81 331.67"}),i.createElement("polygon",{points:"380.48 128.03 237.93 331.67 312.99 331.67 276.33 384.03 129.13 384.03 271.68 180.39 308.33 128.03 380.48 128.03"}),i.createElement("polygon",{points:"272.26 128.03 235.6 180.39 150.08 180.39 150.08 128.03 272.26 128.03"})),logomark:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i.createElement("polygon",{points:"368.46 177.61 256 112.68 143.54 177.61 256 242.54 368.46 177.61"}),i.createElement("polygon",{points:"128 334.39 240.46 399.32 240.46 269.46 128 204.53 128 334.39"}),i.createElement("polygon",{points:"384 204.53 271.54 269.46 271.54 399.32 384 334.39 384 204.53"}))};function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var ne=["activeClassName","children","className","ElementType","external","href","path","rel","target","to","underlined","unstyled"];function re(e){var t=e.activeClassName,n=e.children,r=e.className,a=e.ElementType,o=void 0===a?"a":a,l=e.external,c=void 0!==l&&l,u=e.href,d=e.path,m=e.rel,p=e.target,h=e.to,f=e.underlined,g=void 0!==f&&f,v=e.unstyled,y=void 0!==v&&v,b=te(e,ne);return i.createElement(o,ee({},b,"a"===o?{href:u||d||h,rel:m||(c?"noopener noreferrer":void 0),target:p||(c?"_blank":void 0)}:{to:h||d||u,href:u||d||h,activeClassName:t},{className:s()({link:!y},{"link--underlined":g&&!y},r)}),n)}function ae(e,t){return e?i.createElement("img",{alt:"Logo",src:e}):Q[t]}function ie(e){var t=e.fill,n=e.image,r=e.onClick,a=e.size,o=e.style,l=e.variant,c=void 0===l?"wordmark":l;return i.createElement("div",{className:s()("logo",c,void 0===a?"medium":a,e.className),style:ee({},o,{fill:t})},r?i.createElement("button",{"aria-label":"Logo",onClick:function(e){e.target.blur(),r()}},ae(n,c)):ae(n,c))}re.propTypes={activeClassName:a().string,children:a().node,className:a().string,ElementType:a().elementType,external:a().bool,href:a().string,path:a().string,rel:a().string,target:a().string,to:a().string,underlined:a().bool,unstyled:a().bool},ie.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),ie.variant=Object.freeze({wordmark:"wordmark",lettermark:"lettermark",logomark:"logomark"}),ie.propTypes={className:a().string,fill:a().string,image:a().string,onClick:a().func,size:a().oneOf(Object.values(ie.size)),style:a().object,variant:a().oneOf(Object.values(ie.variant))},a().bool,a().string,a().node,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().func,a().func,a().bool,a().string,a().bool;var oe=["ariaHidden","children","className","inactive","material","name","size","theme"];function se(e){var t,n,r=e.ariaHidden,a=void 0===r||r,o=e.children,l=e.className,c=e.inactive,u=e.material,d=void 0===u||u,m=e.name,p=e.size,h=void 0===p?"medium":p,f=e.theme,g=te(e,oe);return i.createElement("i",ee({"aria-hidden":a,className:s()("icon",(t={},t["icon--"+h]=h,t),(n={},n["icon--"+f]=f,n),{"icon--active":!c},{"icon--inactive":c},{"icon--material":d},l)},g),m||o)}function le(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}function ce(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n)}function ue(e){return void 0===e&&(e=function(){}),function(t){if(!t.defaultPrevented){var n=!1;"Enter"===t.key&&(n=!0,e(t)),n&&t.preventDefault()}}}function de(e,t){return!!t&&("/"===e?e===t.pathname:t.pathname.includes(e))}function me(e,t){return Object.keys(e).reduce((function(n,r){return Array.isArray(t)?t.includes(r)||(n[r]=e[r]):r!==t&&(n[r]=e[r]),n}),{})}function pe(e){var t=e.hidden,n=e.LinkElementType,r=void 0===n?"a":n,a=e.links,o=void 0===a?[]:a,l=e.location,c=void 0===l?"undefined"!=typeof window&&window.location:l,u=e.onLinkClick;return i.createElement("nav",{className:s()("navbar",{"display-none":void 0!==t&&t},e.className)},i.createElement("ul",null,o.map((function(e){var t=e.to||e.path||e.href,n=de(t,c);return i.createElement("li",{key:t},i.createElement(re,ee({},me(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||r,onClick:function(){u&&u(e)},unstyled:!0}),e.leftIcon&&i.createElement(se,{className:"margin-right-md",name:e.leftIcon,size:"small"}),e.name,e.rightIcon&&i.createElement(se,{className:"margin-left-md",name:e.rightIcon,size:"small"})))}))))}function he(e){var t=e.children,n=e.rootElement,r=void 0===n?"#root":n,a=(0,i.useState)(null),o=a[0],s=a[1];return(0,i.useEffect)((function(){s("undefined"!=typeof document?document.querySelector(r):null)}),[r]),o?(0,l.createPortal)(t,o):null}se.size=Object.freeze({inherit:"inherit",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),se.theme=Object.freeze({light:"light",dark:"dark"}),se.propTypes={ariaHidden:a().bool,children:a().node,className:a().string,inactive:a().bool,material:a().bool,name:a().string,size:a().oneOf(Object.keys(se.size)),theme:a().oneOf(Object.values(se.theme))},pe.propTypes={className:a().string,hidden:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func},he.propTypes={children:a().node.isRequired,rootElement:a().string};var fe=["altText","backgroundColor","className","ElementType","foregroundColor","icon","iconName","innerPadding","rounded","size"];function ge(e){var t=e.backgroundColor,n=e.className,r=e.ElementType,a=void 0===r?"i":r,o=e.foregroundColor,l=e.icon,c=e.iconName,u=e.innerPadding,d=void 0===u?8:u,m=e.rounded,p=void 0!==m&&m,h=e.size,f=void 0===h?24:h,g=te(e,fe);return i.createElement(a,ee({},g,{className:s()("icon","social-icon",{"social-icon--rounded":p},c,n),style:{backgroundColor:t,fill:o,width:f,height:f,padding:d}}),l||K[c])}function ve(e){var t=e.backgroundColor,n=e.foregroundColor,r=e.hidden,a=e.iconInnerPadding,o=void 0===a?16:a,l=e.iconSize,c=void 0===l?32:l,u=e.iconSpacing,d=e.links,m=void 0===d?[]:d,p=e.onLinkClick,h=e.rounded,f=void 0!==h&&h,g=e.wrap,v=void 0!==g&&g;return i.createElement("div",{className:s()("social-nav-links",{"display-none":void 0!==r&&r},e.className)},i.createElement("ul",{className:s()("social-nav-links__list",{"flex-wrap":v})},m.map((function(e){var r="string"==typeof e?G[e]:e;return i.createElement("li",{className:"social-nav-links__item",key:r.key,style:{margin:u}},i.createElement(ge,{"aria-label":r.name,backgroundColor:t,ElementType:"a",foregroundColor:n||r.color,href:r.url,icon:r.icon,iconName:r.key,innerPadding:o,onClick:function(){p&&p(r)},rel:"noopener noreferrer",rounded:f,size:c,target:"_blank"}))}))))}function ye(e,t){var n="undefined"!=typeof window?window.matchMedia(e):null,r=(0,i.useState)(n),a=r[0],o=r[1],s=(0,i.useState)(Boolean(a&&a.matches)),l=s[0],c=s[1];return(0,i.useEffect)((function(){"undefined"!=typeof window&&o(window.matchMedia(e))}),[e]),(0,i.useEffect)((function(){var e,n=a;return n&&le(n,"change",e=function(){c(n.matches),t&&t(n.matches)}),function(){n&&e&&ce(n,"change",e)}}),[a,t]),l}ge.propTypes={altText:a().string,backgroundColor:a().string,className:a().string,ElementType:a().elementType,foregroundColor:a().string,icon:a().element,iconName:a().oneOf(Object.keys(K)),innerPadding:a().oneOfType([a().number,a().string]),rounded:a().bool,size:a().oneOfType([a().number,a().string])},ve.propTypes={backgroundColor:a().string,className:a().string,foregroundColor:a().string,hidden:a().bool,iconInnerPadding:a().oneOfType([a().number,a().string]),iconSize:a().oneOfType([a().number,a().string]),iconSpacing:a().oneOfType([a().number,a().string]),links:a().arrayOf(J),onLinkClick:a().func,rounded:a().bool,wrap:a().bool};function be(e){var t=(0,i.useState)(!0),n=t[0],r=t[1],a=function(){r(!1)};return(0,i.useEffect)((function(){var t=e.current;return t&&n&&(t.complete?a():le(t,"load",a)),function(){t&&ce(t,"load",a)}}),[e,n]),n}function we(e,t){void 0===e&&(e=!1),void 0===t&&(t=!0),(0,i.useEffect)((function(){if("undefined"!=typeof document)if(e){if(t){var n="undefined"!=typeof window&&"undefined"!=typeof document?(window.innerWidth||0)-(document.documentElement.clientWidth||0):0;n>0&&(document.body.style.paddingRight=n+"px")}document.body.classList.add("overflow-hidden")}else document.body.classList.remove("overflow-hidden"),t&&(document.body.style.paddingRight=null)}),[e,t])}(0,i.createContext)({theme:"dark",setTheme:function(){},toggleTheme:function(){}});function Ee(e){void 0===e&&(e="light");var t=function(e,t){var n=(0,i.useState)((function(){return function(e,t){if("undefined"==typeof window||!localStorage)return t;var n=localStorage.getItem(e);return n&&JSON.parse(n)||t}(e,t)})),r=n[0],a=n[1];return(0,i.useEffect)((function(){"undefined"!=typeof window&&localStorage&&localStorage.setItem(e,JSON.stringify(r))}),[e,r]),[r,a]}("theme",e),n=t[0],r=t[1],a=(0,i.useCallback)((function(){r("dark"===n?"light":"dark")}),[n,r]);return"undefined"!=typeof window&&document&&document.documentElement&&document.documentElement.style.setProperty("color-scheme",n),[n,r,a]}function ke(e){var t=e.animated,n=void 0!==t&&t,r=e.className,a=e.hideSocialLinks,o=void 0===a||a,l=e.LinkElementType,c=void 0===l?"a":l,u=e.links,d=void 0===u?[]:u,m=e.location,p=void 0===m?"undefined"!=typeof window&&window.location:m,h=e.onLinkClick,f=e.rootElement,g=e.socialLinks,v=void 0===g?[]:g,y=e.theme,b=(0,i.useState)(!1),w=b[0],E=b[1];return we(w,!0),(0,i.useEffect)((function(){E(!1)}),[p]),i.createElement(i.Fragment,null,i.createElement("button",{"aria-label":w?"Close":"Open",className:"navmenu__button",onClick:function(){return E(!w)},size:"small",style:{zIndex:w?1055:void 0}},i.createElement(se,{name:w?"close":"menu",material:!0})),w&&i.createElement(he,{rootElement:f},i.createElement("div",{className:s()("navmenu",{"navmenu--open":w,"navmenu--closed":!w},{"navmenu--animated":n},r),"data-theme":y},i.createElement("div",{className:"navmenu__overlay"}),i.createElement("div",{className:"navmenu__container container"},i.createElement("div",{className:"navmenu__wrapper"},i.createElement("ul",{className:"navmenu__list"},d.map((function(e){var t=e.to||e.path||e.href,n=de(t,p);return i.createElement("li",{className:"navmenu__item",key:t},i.createElement(re,ee({},me(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||c,onClick:function(){h&&h(e)},unstyled:!0}),e.name))}))),!o&&i.createElement(ve,{foregroundColor:"inherit",iconInnerPadding:10,iconSize:20,links:Object.values(v)}))))))}function xe(e,t){return void 0===e&&(e="en-us"),void 0===t&&(t=e),{ios:"https://linkmaker.itunes.apple.com/images/badges/"+e+"/badge_appstore-lrg.svg",android:"https://raw.github.com/yjb94/google-play-badge-svg/master/img/"+t+"_get.svg?sanitize=true"}}function Ce(e){var t=e.alt,n=void 0===t?"Download on the App Store":t,r=e.className,a=e.defaultLocale,o=void 0===a?"en-us":a,l=e.locale,c=void 0===l?"undefined"!=typeof navigator&&navigator.language||o:l,u=e.platform,d=e.width,m=void 0===d?200:d,p=e.height,h=void 0===p?m/3.375:p,f=e.target,g=void 0===f?"_blank":f,v=e.url,y=c=c.toLowerCase();-1===["zh-cn","zh-tw"].indexOf(c)&&(y=c.split(/[_-]/)[0]);var b=(0,i.useState)(xe(c,y)),w=b[0],E=b[1];return(0,i.useLayoutEffect)((function(){E(xe(c,y))}),[c,y]),i.createElement("a",{className:s()("app-store-badge",r),href:v,target:g,style:{width:m,height:h}},i.createElement("img",{alt:n||"",src:w[u],onError:function(){E(xe(o,y))}}))}function Oe(e){var t,n=e.children,r=e.className,a=e.pill,o=void 0!==a&&a,l=e.type,c=void 0===l?"solid":l;return i.createElement("div",{className:s()("badge",(t={},t["badge--"+c]=c,t),{"badge--pill":o},r)},n)}ke.propTypes={animated:a().bool,className:a().string,hideSocialLinks:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func,rootElement:a().string,socialLinks:a().arrayOf(J),theme:a().string},a().bool,a().string,a().bool,a().bool,a().bool,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().object,a().oneOf(Object.values(ie.size)),a().oneOf(Object.values(ie.variant)),a().func,a().func,a().func,a().string,a().arrayOf(J),a().bool,a().string,a().bool,Ce.platform=Object.freeze({ios:"ios",android:"android"}),Ce.propTypes={alt:a().string,className:a().string,defaultLocale:a().string,locale:a().string,platform:a().oneOf(Object.values(Ce.platform)).isRequired,width:a().number,height:a().number,target:a().string,url:a().string.isRequired},a().string,a().oneOf(["left","right"]),a().elementType,a().arrayOf(a().shape(re.propTypes)),a().string,Oe.type=Object.freeze({solid:"solid",outline:"outline"}),Oe.propTypes={children:a().node,className:a().string,pill:a().bool,type:a().oneOf(Object.values(Oe.type))};var Te=["children","className","color","icon","iconElement","iconName","onClick","shape","size","style","styles"];function Se(e){var t,n,r,a,o=e.children,l=e.className,c=e.color,u=void 0===c?"default":c,d=e.icon,m=e.iconElement,p=e.iconName,h=e.onClick,f=e.shape,g=void 0===f?"rounded-corners":f,v=e.size,y=void 0===v?"small":v,b=e.style,w=void 0===b?"solid":b,E=e.styles,k=te(e,Te);return i.createElement("button",ee({className:s()("btn",(t={},t["btn--"+u]=u,t),(n={},n["btn--"+g]=g,n),(r={},r["btn--"+w]=w,r),(a={},a["btn--"+y]=y,a),{"btn--icon-only":"only"===d},l),onClick:h,style:E},k),"left"===d&&i.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-right-md"},m||i.createElement(se,{name:p,size:"inherit"})),"only"===d?i.createElement("span",{"aria-hidden":!0,className:"icon-wrapper"},i.createElement(se,{name:p,size:"inherit"})):o,"right"===d&&i.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-left-md"},m||i.createElement(se,{name:p,size:"inherit"})))}function _e(e){var t,n=e.children,r=e.className,a=e.layout,o=void 0===a?"horizontal":a,l=e.spacing,c=void 0===l||l;return i.createElement("div",{className:s()("btn-group",(t={},t["btn-group--"+o]=o,t),{"btn-group--spacing":c},r)},n)}Se.color=Object.freeze({default:"default",primary:"primary",secondary:"secondary",tertiary:"tertiary",success:"success",danger:"danger",warning:"warning",info:"info"}),Se.shape=Object.freeze({square:"square",roundedCorners:"rounded-corners",rounded:"rounded",circle:"circle"}),Se.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Se.style=Object.freeze({solid:"solid",outline:"outline",text:"text",none:"unstyled"}),Se.propTypes={children:a().node,className:a().string,color:a().oneOf(Object.values(Se.color)),icon:a().oneOf(["left","right","only"]),iconElement:a().element,iconName:a().string,onClick:a().func,shape:a().oneOf(Object.values(Se.shape)),size:a().oneOf(Object.values(Se.size)),style:a().oneOf(Object.values(Se.style)),styles:a().object},_e.layout=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),_e.propTypes={children:a().node,className:a().string,layout:a().oneOf(Object.values(_e.layout)),spacing:a().bool};var Ne=["children","className","external","history","link","linkTarget","onClick"];function Ae(e){var t=e.children,n=e.className,r=e.external,a=e.history,o=e.link,l=e.linkTarget,c=void 0===l?"_blank":l,u=e.onClick,d=te(e,Ne);return i.createElement("div",ee({},d,{className:s()(n,"cursor-pointer"),onClick:function(e){a&&o&&!r?a.push(o):"undefined"!=typeof window&&o&&r&&window.open(o,c),u&&u(e)},onKeyDown:ue(u),role:"button",tabIndex:"0"}),t)}Ae.propTypes={children:a().node,className:a().string,external:a().bool,history:a().shape({push:a().func.isRequired}),link:a().string,linkTarget:a().string,onClick:a().func},a().node,a().string.isRequired;a().oneOfType([a().bool,a().number,a().string,a().shape({offset:a().oneOfType([a().number,a().string]),order:a().oneOfType([a().number,a().string]),size:a().oneOfType([a().number,a().string])})]);a().node,a().string,a().oneOf(["sm","md","lg","none"]);var Pe=i.forwardRef((function(e,t){var n=e.onSubmit,r=void 0===n?function(){}:n;return i.createElement("form",{className:s()("contact-form",e.className),onSubmit:r,ref:t},i.createElement("input",{"aria-label":"Name",id:"contactName",name:"name",placeholder:"Name",required:!0,type:"text"}),i.createElement("input",{"aria-label":"Email",id:"contactEmail",name:"email",placeholder:"Email",required:!0,type:"email"}),i.createElement("textarea",{"aria-label":"Message",id:"contactMessage",name:"message",placeholder:"Message",required:!0}),i.createElement("input",{"aria-label":"Send",id:"contactSubmit",type:"submit",value:"Send"}))}));function Me(e){var t=e.loading,n=e.size;return i.createElement("div",{"aria-hidden":!0,className:s()("loading-spinner",{loading:void 0===t||t},void 0===n?"medium":n,e.className)},i.createElement("div",{className:"loading-spinner__animation"},i.createElement("div",null),i.createElement("div",null),i.createElement("div",null),i.createElement("div",null)))}Pe.displayName="ContactForm",Pe.propTypes={className:a().string,onSubmit:a().func},a().node,a().string,a().oneOfType([a().bool,a().oneOf(["sm","md","lg","xl","fluid"])]),a().string,a().string,a().string,a().func,a().string,a().string,Me.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Me.propTypes={className:a().string,loading:a().bool,size:a().oneOf(Object.values(Me.size))};var Fe=Object.freeze({xs:{width:320,height:180},extraSmall:{width:320,height:180},sm:{width:480,height:270},small:{width:480,height:270},md:{width:640,height:360},medium:{width:640,height:360},lg:{width:960,height:540},large:{width:960,height:540},xl:{width:1280,height:720},extraLarge:{width:1280,height:720}});function Le(e){return null==e||"string"==typeof e&&(e.endsWith("%")||e.endsWith("px"))?e:e+"px"}function je(e){var t=e.allowFullScreen,n=void 0===t||t,r=e.className,a=e.frameBorder,o=void 0===a?"0":a,l=e.height,c=e.id,u=void 0===c?"video-player":c,d=e.scrolling,m=void 0===d?"no":d,p=e.size,h=e.src,f=e.title,g=void 0===f?"Video Player":f,v=e.width,y=(0,i.useRef)(),b=be(y),w="undefined"!=typeof navigator&&!navigator.onLine,E=v||p&&Fe[p].width,k=l||p&&Fe[p].height;return i.createElement("div",{className:s()("embedded-video",{loading:b},p,r),style:{width:Le(E),height:Le(k)}},i.createElement("div",{className:s()("embedded-video__wrapper","transition","fade-in",{visible:!b})},i.createElement("iframe",{allowFullScreen:n,frameBorder:o,height:k||"100%",id:u,ref:y,scrolling:m,src:h,title:g,width:E||"100%"})),b&&!w&&i.createElement(Me,null))}je.size=Fe,je.propTypes={allowFullScreen:a().bool,className:a().string,frameBorder:a().string,height:a().oneOfType([a().string,a().number]),id:a().string,scrolling:a().string,size:a().oneOf(Object.keys(je.size)),src:a().string.isRequired,title:a().string,width:a().oneOfType([a().string,a().number])};a().string.isRequired,a().string,a().string,a().bool,a().bool,a().string;var ze=["autoplay","captions","className","hideBranding","hideControls","hideInfo","hideRelated","id","muted","origin","secure","startTime","title","videoId"];function Ie(e){var t=e.autoplay,n=void 0!==t&&t,r=e.captions,a=void 0!==r&&r,o=e.className,l=e.hideBranding,c=void 0!==l&&l,u=e.hideControls,d=void 0!==u&&u,m=e.hideInfo,p=void 0!==m&&m,h=e.hideRelated,f=void 0===h||h,g=e.id,v=void 0===g?"youtube-player":g,y=e.muted,b=void 0!==y&&y,w=e.origin,E=e.secure,k=void 0===E||E,x=e.startTime,C=e.title,O=void 0===C?"YouTube":C,T=e.videoId,S=te(e,ze),_="enablejsapi=1";_+="&origin="+w,f&&(_+="&rel=0"),d&&(_+="&controls=0"),p&&(_+="&showinfo=0"),c&&(_+="&modestbranding=1"),a&&(_+="&cc_load_policy=1"),n&&(_+="&autoplay=1"),b&&(_+="&mute=1"),x&&(_+="&start="+x);var N=k?"https":"http";return i.createElement(je,ee({className:s()("youtube",o),id:v,src:N+"://www.youtube.com/embed/"+T+"?"+_,title:O},S))}Ie.propTypes={autoplay:a().bool,captions:a().bool,className:a().string,hideBranding:a().bool,hideControls:a().bool,hideInfo:a().bool,hideRelated:a().bool,id:a().string,muted:a().bool,origin:a().string.isRequired,secure:a().bool,startTime:a().oneOf([a().number,a().string]),title:a().string,videoId:a().string.isRequired};var Re=["className","disabled","icon","iconAlignment","onBlur","onChange","onFocus","placeholder","size","type","value"];function De(e){var t,n,r=e.className,a=e.disabled,o=e.icon,l=e.iconAlignment,c=void 0===l?"right":l,u=e.onBlur,d=void 0===u?function(){}:u,m=e.onChange,p=void 0===m?function(){}:m,h=e.onFocus,f=void 0===h?function(){}:h,g=e.placeholder,v=e.size,y=e.type,b=e.value,w=te(e,Re),E=(0,i.useState)(!1),k=E[0],x=E[1];return i.createElement("div",{className:s()("input-wrapper",(t={},t["input-wrapper--"+v]=v,t),(n={},n["input-wrapper--icon-"+c]=o&&c,n),{focus:k,disabled:a},r)},i.createElement("input",ee({className:"input-wrapper__input",disabled:a,onBlur:function(){x(!1),d()},onChange:p,onFocus:function(){x(!0),f()},placeholder:g,type:y,value:b},w)),o&&i.createElement(se,{className:"input-wrapper__icon",name:o,size:"md"}))}function $e(e){var t=e.alt,n=e.animated,r=void 0===n||n,a=e.className,o=e.height,l=e.imageClassName,c=e.ImageElementType,u=void 0===c?"img":c,d=e.imageProps,m=void 0===d?{}:d,p=e.onLoad,h=void 0===p?function(){}:p,f=e.placeholder,g=e.placeholderClassName,v=e.placeholderProps,y=void 0===v?{}:v,b=e.showLoadingSpinner,w=void 0!==b&&b,E=e.src,k=e.width,x=(0,i.useRef)(),C=function(e,t){void 0===t&&(t=function(){});var n=!be(e);return(0,i.useEffect)((function(){n&&t()}),[n,t]),n}(x,h);return i.createElement("picture",{className:s()("progressive-image",{"progressive-image--loaded":C},{"progressive-image--animated":r},{"progressive-image--no-placeholder":!f},a)},i.createElement(u,ee({},m,{alt:m.alt||t,className:s()("progressive-image__source","img-fluid",l,m.className),width:k||m.width,height:o||m.height,ref:x,src:E})),f&&i.createElement(u,ee({},y,{alt:y.alt||t,className:s()("progressive-image__placeholder","img-fluid",g,y.className),width:k||y.width||m.width,height:o||y.height||m.height,src:f})),w&&!C&&i.createElement(Me,null))}function Be(e){return"string"==typeof e?e:e.src}function qe(e){return e?e+"px":void 0}function He(e,t,n){return"repeat("+(e||"auto-fit")+", minmax("+(qe(t)||0)+", "+(qe(n)||"1fr")+"))"}function Ye(e){var t=e.animated,n=void 0!==t&&t,r=e.animation,a=void 0===r?"fade-in-up":r,o=e.className,l=e.columns,c=e.fullWidthFirstItem,u=void 0!==c&&c,d=e.images,m=void 0===d?[]:d,p=e.maxWidth,h=e.minWidth,f=(0,i.useState)(!1),g=f[0],v=f[1],y=(0,i.useState)(0),b=y[0],w=y[1];return i.createElement("div",{className:s()("image-gallery",o)},i.createElement("div",{className:"image-gallery__thumbnails",style:{gridTemplateColumns:He(l,h,p)}},m.map((function(e,t){var r,o="object"==typeof e,l=o?e.src:e,c=o&&e.id||l;return i.createElement("button",{"aria-label":"Image Thumbnail",className:s()("image-gallery__thumbnail",{"image-gallery__thumbnail--full-width":0===t&&u},(r={"animation-short":n},r["animation-delay-"+(t+1)]=n,r[a]=n,r),o&&e.className),key:c,onClick:function(){w(t),v(!0)}},i.createElement($e,{imageProps:o?me(e,"className"):{},src:l}))}))),g&&i.createElement(I,{enableZoom:!1,mainSrc:Be(m[b]),nextSrc:Be(m[(b+1)%m.length]),prevSrc:Be(m[(b+m.length-1)%m.length]),onCloseRequest:function(){v(!1)},onMovePrevRequest:function(){w((b+m.length-1)%m.length)},onMoveNextRequest:function(){w((b+1)%m.length)},wrapperClassName:"image-gallery__lightbox"}))}function Ue(e){var t,n=e.backgroundColor,r=e.children,a=e.className,o=e.size,l=void 0===o?"medium":o,c=e.style,u=e.theme,d=e.transparent,m=void 0!==d&&d;return i.createElement("div",{className:s()("page-banner",(t={},t["page-banner--"+l]=l,t),{"page-banner--transparent":m},a),"data-theme":u,style:ee({backgroundColor:n},c)},r)}De.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),De.iconAlignment=Object.freeze({left:"left",right:"right"}),De.propTypes={className:a().string,disabled:a().bool,icon:a().string,iconAlignment:a().oneOf(Object.values(De.iconAlignment)),onBlur:a().func,onChange:a().func,onFocus:a().func,placeholder:a().string,size:a().oneOf(Object.values(De.size)),type:a().string,value:a().any},$e.propTypes={alt:a().string,animated:a().bool,className:a().string,height:a().oneOfType([a().string,a().number]),imageClassName:a().string,ImageElementType:a().elementType,imageProps:a().object,onLoad:a().func,placeholder:a().string,placeholderClassName:a().string,placeholderProps:a().object,showLoadingSpinner:a().bool,src:a().string,width:a().oneOfType([a().string,a().number])},Ye.propTypes={animated:a().bool,animation:a().string,className:a().string,columns:a().number,fullWidthFirstItem:a().bool,images:a().arrayOf(a().oneOfType([a().shape({alt:a().string,className:a().string,id:a().string,src:a().string.isRequired}),a().string])),maxWidth:a().number,minWidth:a().number},a().node,a().string,a().element,a().oneOf(["left","right"]),a().string,a().func,a().bool,a().string,a().string,a().string,Ue.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),Ue.propTypes={backgroundColor:a().string,children:a().node,className:a().string,size:a().oneOf(Object.values(Ue.size)),style:a().object,theme:a().string,transparent:a().bool},a().string,a().number,a().func,a().number.isRequired,a().node,a().string,a().oneOf(["sm","md","lg","none"]);a().string,a().number,a().bool,a().func,a().func,a().string,a().bool,a().string,a().node,a().bool,a().object,a().string,a().string;var Xe=["children","className","link","LinkElementType","primaryColor","secondaryColor","size","url"];function Ze(e){var t=e.children,n=e.className,r=e.link,a=e.LinkElementType,o=e.primaryColor,l=e.secondaryColor,c=e.size,u=void 0===c?Se.size.medium:c,d=e.url,m=te(e,Xe),p="string"==typeof r?G[r]:r,h=o||p.color;return i.createElement(re,{ElementType:a,external:!0,to:d||p.url,unstyled:!0},i.createElement(Se,ee({className:s()("social-button",p.key,n),icon:"left",iconElement:p.icon&&i.createElement(ge,{"aria-hidden":!0,ElementType:"i",icon:p.icon,iconName:p.key,innerPadding:0,size:"100%"}),size:u,styles:{"--btn-color-primary":h,"--btn-color-secondary":l,"--btn-color-emphasis":h},tabIndex:-1},m),t||p.name))}function We(e){var t,n=e.alignItems,r=e.children,a=e.direction,o=void 0===a?"column":a,l=e.justifyContent,c=e.reversed,u=void 0!==c&&c,d=e.wrap;return i.createElement("div",{className:s()("display-flex",{"flex-row":"row"===o&&!u,"flex-row-reverse":"row"===o&&u,"flex-column":"column"===o&&!u,"flex-column-reverse":"column"===o&&u,"flex-wrap":void 0!==d&&d},(t={},t["justify-content-"+l]=l,t["align-items-"+n]=n,t))},r)}Ze.shape=Se.shape,Ze.size=Se.size,Ze.style=Se.style,Ze.propTypes={children:a().node,className:a().string,link:J.isRequired,LinkElementType:a().elementType,primaryColor:a().string,secondaryColor:a().string,size:a().oneOf(Object.values(Se.size)),url:a().string},We.direction=Object.freeze({row:"row",column:"column"}),We.alignItems=Object.freeze({start:"start",end:"end",center:"center",stretch:"stretch",baseline:"baseline"}),We.justifyContent=Object.freeze({start:"start",end:"end",center:"center",between:"between",around:"around",evenly:"evenly"}),We.propTypes={alignItems:a().oneOf(Object.values(We.alignItems)),children:a().node,direction:a().oneOf(Object.values(We.direction)),justifyContent:a().oneOf(Object.values(We.justifyContent)),reversed:a().bool,wrap:a().bool};a().oneOf(["inherit","transparent","black","white","foreground","foreground-muted","foreground-subtle","background","surface-0","surface-1","surface-2","surface-3","surface-4","surface-5","surface-6","surface-7","surface-8","surface-9","border","default","primary","secondary","tertiary","success","danger","warning","info"]),a().oneOf([1,2,3,4,5,6,"1","2","3","4","5","6"]),a().oneOf(["xxxl","xxl","xl","lg","md","sm","xs","xxs","xxxs"]),a().oneOf([100,200,300,400,500,600,700,800,900,"100","200","300","400","500","600","700","800","900"]),a().oneOf(["0","none","xs","sm","md","lg","xl","xxl","xxxl","2xl","2xxl","2xxxl","1em","2em","3em","4em","5em","6em","7em","8em"]);a().bool,a().node,a().string,a().bool,a().elementType;var Ve=["alt","animated","animation","children","className","ElementType","height","image","imageClassName","ImageElementType","imageProps","index","placeholder","placeholderClassName","placeholderProps","rounded","shadow","style","width"];function Ke(e){var t,n=e.alt,r=e.animated,a=void 0!==r&&r,o=e.animation,l=void 0===o?"fade-translate-in":o,c=e.children,u=e.className,d=e.ElementType,m=void 0===d?"a":d,p=e.height,h=e.image,f=e.imageClassName,g=e.ImageElementType,v=void 0===g?"img":g,y=e.imageProps,b=void 0===y?{}:y,w=e.index,E=e.placeholder,k=e.placeholderClassName,x=e.placeholderProps,C=void 0===x?{}:x,O=e.rounded,T=void 0===O||O,S=e.shadow,_=void 0===S||S,N=e.width,A=te(e,Ve),P=(0,i.useRef)(),M=(0,i.useState)(!1),F=M[0],L=M[1];return(0,i.useEffect)((function(){var e;return a&&F&&(e=setTimeout((function(){P&&P.current&&(P.current.style.animation=0)}),600)),function(){e&&clearTimeout(e)}}),[a,F,P]),i.createElement(m,ee({},A,{className:s()("thumbnail",(t={"animation-short":a&&F},t["animation-delay-"+(w+1)]=a&&F&&w>=0,t[l]=a&&F,t),{rounded:T,shadow:_},u),ref:P}),v&&i.createElement($e,{alt:n,height:p,imageClassName:f,ImageElementType:v,imageProps:b,onLoad:function(){return L(!0)},placeholder:E,placeholderClassName:k,placeholderProps:C,src:h,width:N}),c)}Ke.propTypes={alt:a().string,animated:a().bool,animation:a().string,children:a().node,className:a().string,ElementType:a().elementType,height:a().oneOfType([a().string,a().number]),image:a().string,imageClassName:a().string,ImageElementType:a().elementType,imageProps:a().object,index:a().number,placeholder:a().string,placeholderClassName:a().string,placeholderProps:a().object,rounded:a().bool,shadow:a().bool,style:a().object,width:a().oneOfType([a().string,a().number])},a().bool,a().node,a().string,a().bool,a().bool,a().bool,a().bool,a().bool,a().elementType},7427:function(e,t){"use strict";t.q=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},a=t||{},o=e.split(";"),s=a.decode||n,l=0;l{let{link:t,external:n=!1}=e;return i.createElement("div",{className:"dock__item",id:t.name},i.createElement(r.N_,{ElementType:t.ElementType||(n?"a":a.Link),external:n,to:t.to||t.url,unstyled:!0},t.icon?i.createElement(r.In,{name:t.icon}):i.createElement(r.b6,{iconName:t.key,innerPadding:0,size:18})),i.createElement("div",{className:"dock__tooltip"},t.name))};var l=e=>{let{theme:t,toggleTheme:n,secondaryLinks:a}=e;return i.createElement("div",{className:"dock"},i.createElement("div",{className:"dock__container",id:"primary"},i.createElement("div",{className:"dock__section",id:"navigation"},o.R1.map((e=>i.createElement(s,{link:e,key:e.key})))),i.createElement("div",{className:"dock__section",id:"socials"},o.lj.map((e=>i.createElement(s,{link:e,key:e.key,external:!0})))),i.createElement("div",{className:"dock__section",id:"gallery"},i.createElement("div",{className:"dock__item",id:"Previous"},i.createElement("button",{onClick:()=>{if(!document)return;const e=new Event("previous_slide");document.dispatchEvent(e)}},i.createElement(r.In,{name:"chevron_left"})),i.createElement("div",{className:"dock__tooltip"},"Previous")),i.createElement("div",{className:"dock__item",id:"Next"},i.createElement("button",{onClick:()=>{if(!document)return;const e=new Event("next_slide");document.dispatchEvent(e)}},i.createElement(r.In,{name:"chevron_right"})),i.createElement("div",{className:"dock__tooltip"},"Next"))),i.createElement("div",{className:"dock__section",id:"theme"},i.createElement("div",{className:"dock__item",id:"Theme"},i.createElement("button",{onClick:n},i.createElement(r.In,{name:"dark"===t?"light_mode":"dark_mode"})),i.createElement("div",{className:"dock__tooltip"},"dark"===t?"Light Mode":"Dark Mode")))),a&&i.createElement("div",{className:"dock__container",id:"secondary"},a.map((e=>i.createElement(s,{link:e,key:e.key||e.name,external:!0})))))},c=n(6942),u=n.n(c),d=n(5556),m=n.n(d);var p=e=>{let{children:t,...n}=e;return i.createElement(r.$n,Object.assign({className:"shadow-button",size:r.$n.size.small,shape:r.$n.shape.rounded},n),t)};const h=m().shape({sharp:m().shape({original:m().shape({src:m().string.isRequired,width:m().number,height:m().number})})});m().shape({category:m().string.isRequired,date:m().string,description:m().string,description_short:m().string,id:m().string.isRequired,image:h.isRequired,imageAltText:m().string,imageBorder:m().string,title:m().string.isRequired});var f=e=>{let{className:t,slide:n}=e;const o="undefined"!=typeof navigator&&!navigator.onLine,s=`/${n.category}/${n.id}`;return i.createElement("div",{className:u()("slide",t)},i.createElement("div",{className:"slide__image-wrapper"},i.createElement(r.N_,{className:"display-inline-flex",ElementType:a.Link,to:s,unstyled:!0},i.createElement(r.vb,{alt:n.imageAltText||"",animated:!1,className:u()("slide__image",{[`slide__image--border-${n.imageBorder}`]:n.imageBorder}),width:n.image.sharp.original.width,height:n.image.sharp.original.height,src:n.image.sharp.original.src,showLoadingSpinner:!o}))),i.createElement("div",{className:"slide__text-wrapper"},i.createElement("div",{className:"slide__text-container"},i.createElement("p",{className:"eyebrow"},n.date),i.createElement("h1",{className:"title"},n.title),i.createElement("p",{className:"description opacity-90p"},n.description_short||n.description),i.createElement(r.N_,{ElementType:a.Link,to:s,style:{marginLeft:"-4px"},unstyled:!0},i.createElement(p,null,"More Details")))))};var g=e=>{let{category:t,location:n,slides:o=[]}=e;const s=(0,r.Ub)("(max-width: 1365px)"),l=new URLSearchParams(null==n?void 0:n.search),c=(l.has("index")?Number.parseInt(l.get("index"))||0:function(e){return e&&"undefined"!=typeof sessionStorage&&Number.parseInt(sessionStorage.getItem(`${e}-slide`))||0}(t))%o.length,d=c>=0&&c{e>=o.length&&(e=0),e<0&&(e=o.length-1),function(e,t){e&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem(`${e}-slide`,t)}(t,e),(0,a.navigate)(`/${t}?index=${e}`,{replace:!0})}),[t,o,c]);return(0,i.useEffect)((()=>{if(!document)return;const e=()=>m(c-1),t=()=>m(c+1);return document.addEventListener("previous_slide",e),document.addEventListener("next_slide",t),()=>{document.removeEventListener("previous_slide",e),document.removeEventListener("next_slide",t)}}),[c]),i.createElement("div",{className:u()("gallery",{"gallery--vertical":s}),id:t},i.createElement("button",{"aria-label":"Previous Slide",className:"gallery__button previous",onClick:()=>m(c-1)},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"48px",height:"48px"},i.createElement("path",{d:"M14.71 6.71c-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41z"}))),i.createElement("div",{className:"gallery__slides"},d&&i.createElement(f,{slide:d})),i.createElement("button",{"aria-label":"Next Slide",className:"gallery__button next",onClick:()=>m(c+1)},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"48px",height:"48px"},i.createElement("path",{d:"M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z"}))))};var v=e=>{let{rounded:t=!1,size:n=48}=e;return i.createElement("div",{className:u()("ag-logo",{"ag-logo--rounded":t}),style:{width:`${n}px`,height:`${n}px`,minWidth:`${n}px`,minHeight:`${n}px`}},i.createElement(r.N_,{ElementType:a.Link,to:"/",unstyled:!0},i.createElement("div",{className:"ag-logo__background"}),i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i.createElement("polygon",{points:"345.17 257.56 233.75 257.56 212.47 294.58 324.06 294.58 382.6 396.41 425 396.41 345.17 257.56"}),i.createElement("polygon",{points:"168.69 322.35 254.36 173.36 286.8 229.79 329.2 229.79 254.36 99.59 105 359.38 333.5 359.38 312.21 322.35 168.69 322.35"}))))};var y=e=>{let{open:t,onRequestClose:n=()=>{}}=e;return(0,r.ln)(t,!0),i.createElement("div",{className:u()("menu-gallery",{open:t,closed:!t})},i.createElement("div",{"aria-hidden":!t,className:"menu-gallery__container container-fluid"},i.createElement("ul",{className:"menu-gallery__list"},t&&i.createElement(a.StaticQuery,{query:"3141325806",render:e=>o.Jm.map((o=>{const s=e[o.key]||{nodes:[]};return i.createElement("li",{className:"menu-gallery__section",key:o.to},i.createElement(r.N_,{activeClassName:"","aria-disabled":!t,"aria-label":o.name,disabled:!t,ElementType:o.ElementType||a.Link,external:o.external,onClick:n,tabIndex:t?0:-1,to:o.to,unstyled:!0},i.createElement("span",null,o.name),i.createElement(r.$n,{className:"margin-top-md margin-left-lg active",icon:"only",iconName:"east",style:r.$n.style.text})),i.createElement("div",{className:"menu-gallery__grid"},s.nodes.map(((e,o)=>i.createElement(r.Vz,{alt:e.imageAltText||"",animated:!1,"aria-disabled":!t,"aria-label":e.title,className:"menu-gallery__thumbnail",disabled:!t,ElementType:a.Link,height:e.image.sharp.original.height,image:e.image.sharp.original.src,imageClassName:"img-fluid",index:o,key:e.id,onClick:n,shadow:!1,to:`/${e.category}/?index=${o}`,width:e.image.sharp.original.width})))))}))}))))};const b=e=>{let{location:t,pageTitle:n}=e;const{0:s,1:l}=(0,i.useState)(!1);return i.createElement(i.Fragment,null,i.createElement("header",{className:"header"},i.createElement("div",{className:"header__container container-fluid"},i.createElement(v,{size:44}),i.createElement(r.jq,{links:o.Jm,LinkElementType:a.Link,location:t}),n&&i.createElement(r.$n,{className:"header__title-button",onClick:()=>{const e=o.Jm.find((e=>e.name===n));e?(0,a.navigate)(e.to):l(!0)},style:r.$n.style.none},n),i.createElement("button",{"aria-label":s?"Close Gallery Menu":"Open Gallery Menu",className:"header__menu-button",onClick:()=>l(!s)},s?i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"36px",height:"36px"},i.createElement("path",{d:"M3 18h13v-2H3v2zm0-5h10v-2H3v2zm0-7v2h13V6H3zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5L21 15.59z"})):i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"36px",height:"36px"},i.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}))))),i.createElement(y,{open:s,onRequestClose:()=>l(!1)}))};b.propType={location:m().object,pageTitle:m().string};var w,E,k,x,C=b,O=n(2098),T=n.n(O),S=n(115),_=n.n(S),N=n(8828),A=n.n(N),P="bodyAttributes",M="htmlAttributes",F="titleAttributes",L={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},j=(Object.keys(L).map((function(e){return L[e]})),"charset"),z="cssText",I="href",R="http-equiv",D="innerHTML",$="itemprop",B="name",q="property",H="rel",Y="src",U="target",X={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Z="defaultTitle",W="defer",V="encodeSpecialCharacters",K="onChangeClientState",J="titleTemplate",G=Object.keys(X).reduce((function(e,t){return e[X[t]]=t,e}),{}),Q=[L.NOSCRIPT,L.SCRIPT,L.STYLE],ee="data-react-helmet",te="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},ne=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ie=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},oe=function(e){var t=de(e,L.TITLE),n=de(e,J);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=de(e,Z);return t||r||void 0},se=function(e){return de(e,K)||function(){}},le=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return re({},e,t)}),{})},ce=function(e,t){return t.filter((function(e){return void 0!==e[L.BASE]})).map((function(e){return e[L.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},me=(w=Date.now(),function(e){var t=Date.now();t-w>16?(w=t,e(t)):setTimeout((function(){me(e)}),0)}),pe=function(e){return clearTimeout(e)},he="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||me:n.g.requestAnimationFrame||me,fe="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||pe:n.g.cancelAnimationFrame||pe,ge=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ve=null,ye=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,m=e.titleAttributes;Ee(L.BODY,r),Ee(L.HTML,a),we(d,m);var p={baseTag:ke(L.BASE,n),linkTags:ke(L.LINK,i),metaTags:ke(L.META,o),noscriptTags:ke(L.NOSCRIPT,s),scriptTags:ke(L.SCRIPT,c),styleTags:ke(L.STYLE,u)},h={},f={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(f[e]=p[e].oldTags)})),t&&t(),l(e,h,f)},be=function(e){return Array.isArray(e)?e.join(""):e},we=function(e,t){void 0!==e&&document.title!==e&&(document.title=be(e)),Ee(L.TITLE,t)},Ee=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(ee),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),s=0;s=0;d--)n.removeAttribute(i[d]);a.length===i.length?n.removeAttribute(ee):n.getAttribute(ee)!==o.join(",")&&n.setAttribute(ee,o.join(","))}},ke=function(e,t){var n=document.head||document.querySelector(L.HEAD),r=n.querySelectorAll(e+"["+ee+"]"),a=Array.prototype.slice.call(r),i=[],o=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===D)n.innerHTML=t.innerHTML;else if(r===z)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(ee,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):i.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:i}},xe=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}),"")},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[X[n]||n]=e[n],t}),t)},Oe=function(e,t,n){switch(e){case L.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[ee]=!0,a=Ce(n,r),[i.createElement(L.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=xe(n),i=be(t);return a?"<"+e+" "+ee+'="true" '+a+">"+ie(i,r)+"":"<"+e+" "+ee+'="true">'+ie(i,r)+""}(e,t.title,t.titleAttributes,n)}};case P:case M:return{toComponent:function(){return Ce(t)},toString:function(){return xe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[ee]=!0,r);return Object.keys(t).forEach((function(e){var n=X[e]||e;if(n===D||n===z){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),i.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===D||e===z)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+ie(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===Q.indexOf(e);return t+"<"+e+" "+ee+'="true" '+a+(o?"/>":">"+i+"")}),"")}(e,t,n)}}}},Te=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,m=e.titleAttributes;return{base:Oe(L.BASE,t,r),bodyAttributes:Oe(P,n,r),htmlAttributes:Oe(M,a,r),link:Oe(L.LINK,i,r),meta:Oe(L.META,o,r),noscript:Oe(L.NOSCRIPT,s,r),script:Oe(L.SCRIPT,l,r),style:Oe(L.STYLE,c,r),title:Oe(L.TITLE,{title:d,titleAttributes:m},r)}},Se=T()((function(e){return{baseTag:ce([I,U],e),bodyAttributes:le(P,e),defer:de(e,W),encode:de(e,V),htmlAttributes:le(M,e),linkTags:ue(L.LINK,[H,I],e),metaTags:ue(L.META,[B,j,R,q,$],e),noscriptTags:ue(L.NOSCRIPT,[D],e),onChangeClientState:se(e),scriptTags:ue(L.SCRIPT,[Y,D],e),styleTags:ue(L.STYLE,[z],e),title:oe(e),titleAttributes:le(F,e)}}),(function(e){ve&&fe(ve),e.defer?ve=he((function(){ye(e,(function(){ve=null}))})):(ye(e),ve=null)}),Te)((function(){return null})),_e=(E=Se,x=k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,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!_()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case L.SCRIPT:case L.NOSCRIPT:return{innerHTML:t};case L.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,a=e.newChildProps,i=e.nestedChildren;return re({},r,((t={})[n.type]=[].concat(r[n.type]||[],[re({},a,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(r.type){case L.TITLE:return re({},a,((t={})[r.type]=o,t.titleAttributes=re({},i),t));case L.BODY:return re({},a,{bodyAttributes:re({},i)});case L.HTML:return re({},a,{htmlAttributes:re({},i)})}return re({},a,((n={})[r.type]=re({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=re({},t);return Object.keys(e).forEach((function(t){var r;n=re({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[G[n]||n]=e[n],t}),t)}(ae(a,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case L.LINK:case L.META:case L.NOSCRIPT:case L.SCRIPT:case L.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:o,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=ae(e,["children"]),r=re({},n);return t&&(r=this.mapChildrenToProps(t,r)),i.createElement(E,r)},ne(t,null,[{key:"canUseDOM",set:function(e){E.canUseDOM=e}}]),t}(i.Component),k.propTypes={base:m().object,bodyAttributes:m().object,children:m().oneOfType([m().arrayOf(m().node),m().node]),defaultTitle:m().string,defer:m().bool,encodeSpecialCharacters:m().bool,htmlAttributes:m().object,link:m().arrayOf(m().object),meta:m().arrayOf(m().object),noscript:m().arrayOf(m().object),onChangeClientState:m().func,script:m().arrayOf(m().object),style:m().arrayOf(m().object),title:m().string,titleAttributes:m().object,titleTemplate:m().string},k.defaultProps={defer:!0,encodeSpecialCharacters:!0},k.peek=E.peek,k.rewind=function(){var e=E.rewind();return e||(e=Te({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},x);_e.renderStatic=_e.rewind;var Ne=e=>{const t=(0,a.useStaticQuery)("1995548873"),{metadata:n}=t.site,r={...n,...e};return i.createElement(_e,null,i.createElement("title",null,r.title),i.createElement("meta",{name:"description",content:r.description}),r.image&&i.createElement("meta",{name:"image",content:r.image}),r.url&&i.createElement("meta",{property:"og:url",content:r.url}),i.createElement("meta",{property:"og:type",content:"website"}),i.createElement("meta",{property:"og:title",content:r.title}),i.createElement("meta",{property:"og:description",content:r.description}),r.image&&i.createElement("meta",{property:"og:image",content:r.image}),i.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),i.createElement("meta",{name:"twitter:creator",content:"@zigurous"}),i.createElement("meta",{name:"twitter:title",content:r.title}),i.createElement("meta",{name:"twitter:description",content:r.description}),r.image&&i.createElement("meta",{name:"twitter:image",content:r.image}))};var Ae=e=>{let{children:t,className:n,dockLinks:a,hideDock:o=!1,hideHeader:s=!1,id:c,location:d,metadata:m,title:p}=e;const[h,f,g]=(0,r.DP)("light");return i.createElement("div",{className:"app","data-theme":h},i.createElement(Ne,m),!s&&i.createElement(C,{location:d,pageTitle:p}),i.createElement("main",{className:u()("page",n),id:c},t),!o&&i.createElement(l,{theme:h,toggleTheme:g,secondaryLinks:a}))};m().shape({buttons:m().arrayOf(m().shape({name:m().string.isRequired,url:m().string.isRequired,icon:m().string.isRequired})),category:m().string.isRequired,date:m().string,description:m().string,description_short:m().string,description_long:m().arrayOf(m().string),id:m().string.isRequired,image:h.isRequired,role:m().string,sections:m().arrayOf(m().shape({title:m().string,link:m().string,mainImage:h,mainImageLink:m().string,mainVideo:m().string,paragraphs:m().arrayOf(m().string),gallery:m().arrayOf(h),videos:m().arrayOf(m().string)})),tech:m().arrayOf(m().string),title:m().string.isRequired});var Pe=e=>{let{className:t,project:n}=e;return i.createElement("article",{className:u()("project","container-md",t)},i.createElement("section",null,i.createElement("h1",{className:"display-4 project__title"},n.title),i.createElement("div",{className:"project__subtitle"},n.date,i.createElement("span",{className:"separator"},"|"),n.role),n.tech&&i.createElement("div",{className:"project__badges"},n.tech.map((e=>i.createElement(r.Ex,{pill:!0,key:e},e)))),i.createElement("div",{className:"project__description"},n.description&&i.createElement("p",{className:"opacity-90p"},n.description),n.description_long&&n.description_long.map((e=>i.createElement("p",{className:"opacity-90p",key:e},e))))),n.sections&&n.sections.map(((e,t)=>i.createElement("section",{key:`section-${t}`},e.title&&i.createElement("h2",{className:"subtitle font-xl"},e.link?i.createElement(r.N_,{external:!0,href:e.link},i.createElement("b",null,e.title)):i.createElement("b",null,e.title)),e.mainImage&&(e.mainImageLink?i.createElement(r.N_,{external:!0,to:e.mainImageLink,unstyled:!0},i.createElement(r.vb,{alt:`${n.title} Screenshot`,width:e.mainImage.sharp.original.width,height:e.mainImage.sharp.original.height,src:e.mainImage.sharp.original.src})):i.createElement(r.vb,{alt:`${n.title} Screenshot`,width:e.mainImage.sharp.original.width,height:e.mainImage.sharp.original.height,src:e.mainImage.sharp.original.src})),e.mainVideo&&i.createElement(r.QN,{origin:"https://adamgraham.github.io",videoId:e.mainVideo}),e.paragraphs&&e.paragraphs.map(((e,n)=>i.createElement("p",{className:"font-sm",key:`section-${t}-paragraph-${n}`},e))),e.gallery&&i.createElement(r.i_,{images:e.gallery.map((e=>({width:e.sharp.original.width,height:e.sharp.original.height,src:e.sharp.original.src}))),minWidth:132}),e.videos&&e.videos.map((e=>i.createElement(r.QN,{className:"margin-bottom-lg",key:e,origin:"https://adamgraham.github.io",videoId:e})))))))}},1053:function(e,t,n){"use strict";n.d(t,{Jm:function(){return i},M:function(){return a},R1:function(){return o},lj:function(){return s},wW:function(){return r}});const r="https://adamgraham.github.io",a="https://github.com/adamgraham",i=[{key:"games",name:"Games",to:"/games"},{key:"websites",name:"Websites",to:"/websites"},{key:"art",name:"Interactive Art",to:"/art"},{key:"tech",name:"Tech Showcases",to:"/tech"},{key:"presentations",name:"Presentations",to:"/presentations"}],o=[{key:"home",name:"Home",icon:"home",to:"/"},{key:"gallery",name:"Gallery",icon:"collections",to:"/games"},{key:"projects",name:"Projects",icon:"menu",to:"/projects"}],s=[{key:"github",name:"GitHub",url:a},{key:"linkedIn",name:"LinkedIn",url:"https://www.linkedin.com/in/adamzigurous"},{key:"resume",name:"Resume",icon:"description",url:"https://docs.google.com/document/d/1qLHBV7Ry11O-pd0XC3HvALBIKJ8YDBmSafP0Z5c4dww/edit?usp=drive_link"},{key:"email",name:"Email",icon:"mail",url:"mailto:adam@zigurous.com"}]},5624:function(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},5651:function(){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),u=RegExp(l(a+" "+i+" "+o+" "+s)),d=l(i+" "+o+" "+s),m=l(a+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=r(/\((?:[^()]|<>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[f,p]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,y]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),k=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,v,y]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,O=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,k]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,m,f]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,p]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,f,k,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(k),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var S=O+"|"+C,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[S]),N=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),A=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[A,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[A]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]),j=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[S]),2),z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[j,M]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:I(L,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:I(z,j)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},1113:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},5723:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4312:function(){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},8848:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=k.value.length,k=k.next){var C=k.value;if(t.length>e.length)return;if(!(C instanceof i)){var O,T=1;if(y){if(!(O=o(E,x,e,v))||O.index>=e.length)break;var S=O.index,_=O.index+O[0].length,N=x;for(N+=k.value.length;S>=N;)N+=(k=k.next).value.length;if(x=N-=k.value.length,k.value instanceof i)continue;for(var A=k;A!==t.tail&&(N<_||"string"==typeof A.value);A=A.next)T++,N+=A.value.length;T--,C=e.slice(x,N),O.index-=x}else if(!(O=o(E,0,C,v)))continue;S=O.index;var P=O[0],M=C.slice(0,S),F=C.slice(S+P.length),L=x+C.length;d&&L>d.reach&&(d.reach=L);var j=k.prev;if(M&&(j=c(t,j,M),x+=M.length),u(t,j,T),k=c(t,j,new i(m,g?a.tokenize(P,g):P,b,P)),F&&c(t,k,F),T>1){var z={cause:m+","+h,reach:L};s(e,t,n,k.prev,x,z),d&&z.reach>d.reach&&(d.reach=z.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()}),!1),a):a;var d=a.util.currentScript();function m(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",a="loaded",i="pre[data-src]:not(["+t+'="'+a+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),r.hooks.add("before-sanity-check",(function(o){var s=o.element;if(s.matches(i)){o.code="",s.setAttribute(t,n);var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=s.getAttribute("data-src"),u=o.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}r.util.setLanguage(l,u),r.util.setLanguage(s,u);var m=r.plugins.autoloader;m&&m.loadLanguages(u),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){s.setAttribute(t,a);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],a=t[3];return r?a?[n,Number(a)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var i=e.split(/\r\n?|\n/g),o=n[0],c=null==n[1]?i.length:n[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(o+1))}l.textContent=e,r.highlightElement(l)}),(function(e){s.setAttribute(t,"failed"),l.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(i),a=0;t=n[a++];)r.highlightElement(t)}};var o=!1;r.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!=l--;)if(!i(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!=l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],o[c[l]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},1720:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t0&&0===(y-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":a(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}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),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName,i=e.parentSelector,o=i&&i().ownerDocument||document;a&&d.add(o.body,a),r&&d.add(o.getElementsByTagName("html")[0],r),n&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,a=e.overlayClassName,i=e.defaultStyles,o=e.children,s=n?{}:i.content,l=a?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,o);return this.props.overlayElement(c,d)}}]),t}(o.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(m.SafeHTMLCollection),s.default.instanceOf(m.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},6462:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=c(e)[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){a.value.setAttribute("aria-hidden","true")}}catch(o){n=!0,r=o}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=c(e)[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){a.value.removeAttribute("aria-hidden")}}catch(o){n=!0,r=o}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,a=n(9771),i=(r=a)&&r.__esModule?r:{default:r},o=n(834);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,s],t=0;t0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(o.parentElement&&o.parentElement.removeChild(o),s.parentElement&&s.parentElement.removeChild(s))}))},4838:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var i=document.body;for(var o in r)a(i,r[o]);n={},r={}},t.log=function(){0};var n={},r={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return a=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),a.add(e)}));var a,i},t.remove=function(e,t){return a=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&a.remove(e)}));var a,i}},7791:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==o.length&&(t=o.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,a=n(2411),i=(r=a)&&r.__esModule?r:{default:r};var o=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},9628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,a=n(411);var i=((r=a)&&r.__esModule?r:{default:r}).default,o=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=o},7067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=o();if(e===c){if(!a)return;r=l}l!==c||a||(r=s);s===c&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=a?-1:1);if(void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()};var r,a=n(2411),i=(r=a)&&r.__esModule?r:{default:r};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",r="contents",a=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var a=window.getComputedStyle(e),i=a.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,a):i===n}catch(o){return console.warn("Failed to inspect element style"),!1}}function o(e,t){var n=e.nodeName.toLowerCase();return(a.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(1720),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},2098:function(e,t,n){"use strict";var r,a=n(6540),i=(r=a)&&"object"==typeof r&&"default"in r?r.default:r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("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 l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=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 l},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=l;return l=void 0,c=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){c.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},o.render=function(){return i.createElement(r,this.props)},a}(a.PureComponent);return o(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),o(d,"canUseDOM",s),d}}},9771:function(e){"use strict";var t=function(){};e.exports=t},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t= 0) {\r\n this.changeListeners.splice(idx, 1);\r\n }\r\n };\r\n return Cookies;\r\n}());\r\nexport default Cookies;\r\n","import Cookies from 'universal-cookie';\r\nexport default Cookies;\r\n","import * as React from 'react';\r\nimport Cookies from './Cookies';\r\nvar CookiesContext = React.createContext(new Cookies());\r\nexport var Provider = CookiesContext.Provider, Consumer = CookiesContext.Consumer;\r\nexport default CookiesContext;\r\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n/**\n * Placeholder for future translate functionality\n */\nfunction translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!str) {\n return '';\n }\n\n var translated = str;\n\n if (replaceStrings) {\n Object.keys(replaceStrings).forEach(function (placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n }\n\n return translated;\n}\nfunction getWindowWidth() {\n return typeof global.window !== 'undefined' ? global.window.innerWidth : 0;\n}\nfunction getWindowHeight() {\n return typeof global.window !== 'undefined' ? global.window.innerHeight : 0;\n}\n\nvar isCrossOriginFrame = function isCrossOriginFrame() {\n try {\n return global.window.location.hostname !== global.window.parent.location.hostname;\n } catch (e) {\n return true;\n }\n}; // Get the highest window context that isn't cross-origin\n// (When in an iframe)\n\n\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n\n // If we reached the top level, return self\n if (self === global.window.top) {\n return self;\n } // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n\n\n if (!isCrossOriginFrame()) {\n return getHighestSafeWindowContext(self.parent);\n } // If a different origin, we consider the current level\n // as the top reachable one\n\n\n return self;\n}\n\n// Min image zoom level\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\n\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\n\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\n\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\n\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\n\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\n\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\n\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\n\nvar MIN_SWIPE_DISTANCE = 200;\n\nvar ReactImageLightbox = /*#__PURE__*/function (_Component) {\n _inherits(ReactImageLightbox, _Component);\n\n var _super = _createSuper(ReactImageLightbox);\n\n function ReactImageLightbox(props) {\n var _this;\n\n _classCallCheck(this, ReactImageLightbox);\n\n _this = _super.call(this, props);\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n\n _this.outerEl = /*#__PURE__*/React.createRef();\n _this.zoomInBtn = /*#__PURE__*/React.createRef();\n _this.zoomOutBtn = /*#__PURE__*/React.createRef();\n _this.caption = /*#__PURE__*/React.createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_this));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_this));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_this));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_this));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_this));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_this));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_this));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_this));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_this));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_this));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_this));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_this));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_this));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_this));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_this));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_this)); // Timeouts - always clear it before umount\n\n _this.timeouts = []; // Current action\n\n _this.currentAction = ACTION_NONE; // Events source\n\n _this.eventsSource = SOURCE_ANY; // Empty pointers list\n\n _this.pointerList = []; // Prevent inner close\n\n _this.preventInnerClose = false;\n _this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n\n _this.keyPressed = false; // Used to store load state / dimensions of images\n\n _this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n\n _this.lastKeyDownTime = 0; // Used for debouncing window resize event\n\n _this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n\n _this.wheelActionTimeout = null;\n _this.resetScrollTimeout = null;\n _this.scrollX = 0;\n _this.scrollY = 0; // Used in panning zoomed images\n\n _this.moveStartX = 0;\n _this.moveStartY = 0;\n _this.moveStartOffsetX = 0;\n _this.moveStartOffsetY = 0; // Used to swipe\n\n _this.swipeStartX = 0;\n _this.swipeStartY = 0;\n _this.swipeEndX = 0;\n _this.swipeEndY = 0; // Used to pinch\n\n _this.pinchTouchList = null;\n _this.pinchDistance = 0; // Used to differentiate between images with identical src\n\n _this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n\n _this.moveRequested = false;\n return _this;\n }\n\n _createClass(ReactImageLightbox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.props.animationDisabled) {\n // Make opening animation play\n this.setState({\n isClosing: false\n });\n } // Prevents cross-origin errors when using a cross-origin iframe\n\n\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function (type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n\n this.getSrcTypes().forEach(function (srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) {\n _this3.moveRequested = false;\n }\n }); // Wait for move...\n\n return !this.moveRequested;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this4 = this;\n\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function (srcType) {\n if (prevProps[srcType.name] !== _this4.props[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[prevProps[srcType.name]] = true;\n nextSrcDict[_this4.props[srcType.name]] = true;\n }\n });\n\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function (prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this4.imageCache) {\n _this4.imageCache[prevSrc].loaded = false;\n }\n });\n this.moveRequested = false; // Load any new images\n\n this.loadAllImages(this.props);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this5 = this;\n\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function (type) {\n _this5.windowContext.removeEventListener(type, _this5.listeners[type]);\n });\n this.timeouts.forEach(function (tid) {\n return clearTimeout(tid);\n });\n }\n }, {\n key: \"setTimeout\",\n value: function (_setTimeout) {\n function setTimeout(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function (func, time) {\n var _this6 = this;\n\n var id = setTimeout(function () {\n _this6.timeouts = _this6.timeouts.filter(function (tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n }, {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this7 = this;\n\n if (this.preventInnerCloseTimeout) {\n this.clearTimeout(this.preventInnerCloseTimeout);\n }\n\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function () {\n _this7.preventInnerClose = false;\n _this7.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n\n }, {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n\n if (this.isImageLoaded(imageSrc)) {\n // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n } else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else {\n return null;\n }\n\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n\n }, {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n\n if (maxRatio > srcRatio) {\n // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n }\n\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n }, {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType('mainSrc');\n\n if (currentImageInfo === null) {\n return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n }\n\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) {\n // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n } else {\n maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n }\n\n var maxY = 0;\n\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) {\n // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n } else {\n maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n }\n\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n\n }, {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [{\n name: 'mainSrc',\n keyEnding: \"i\".concat(this.keyCounter)\n }, {\n name: 'mainSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter)\n }, {\n name: 'nextSrc',\n keyEnding: \"i\".concat(this.keyCounter + 1)\n }, {\n name: 'nextSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter + 1)\n }, {\n name: 'prevSrc',\n keyEnding: \"i\".concat(this.keyCounter - 1)\n }, {\n name: 'prevSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }];\n }\n /**\n * Get sizing when the image is scaled\n */\n\n }, {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n /**\n * Get the size of the lightbox in pixels\n */\n\n }, {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) {\n return this.outerEl.current.getBoundingClientRect();\n }\n\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n }, {\n key: \"clearTimeout\",\n value: function (_clearTimeout) {\n function clearTimeout(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n\n clearTimeout.toString = function () {\n return _clearTimeout.toString();\n };\n\n return clearTimeout;\n }(function (id) {\n this.timeouts = this.timeouts.filter(function (tid) {\n return tid !== id;\n });\n clearTimeout(id);\n } // Change zoom level\n )\n }, {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) {\n return;\n } // Constrain zoom level to the set bounds\n\n\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n\n if (nextZoomLevel === this.state.zoomLevel) {\n return;\n }\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n\n var imageBaseSize = this.getBestImageForType('mainSrc');\n\n if (imageBaseSize === null) {\n return;\n }\n\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== 'undefined' ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== 'undefined' ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n }, {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) {\n this.requestClose(event);\n }\n }\n /**\n * Handle user keyboard actions\n */\n\n }, {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n\n if (this.isAnimating()) {\n return;\n } // Allow slightly faster navigation through the images when user presses keys repeatedly\n\n\n if (event.type === 'keyup') {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n\n var currentTime = new Date();\n\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return;\n }\n\n this.lastKeyDownTime = currentTime.getTime();\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n /**\n * Handle a mouse wheel event over the lightbox container\n */\n\n }, {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this8 = this;\n\n // Prevent scrolling of the background\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function () {\n _this8.scrollX = 0;\n _this8.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n\n\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(function () {\n _this8.wheelActionTimeout = null;\n }, actionDelay);\n }\n }\n }, {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n\n if (Math.abs(event.deltaY) < yThreshold) {\n return;\n }\n\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n /**\n * Handle a double click on the current image\n */\n\n }, {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) {\n // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n } else {\n // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n }\n }, {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) {\n return true;\n }\n\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n\n switch (source) {\n case SOURCE_MOUSE:\n return false;\n\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n\n return false;\n\n default:\n return false;\n }\n }\n }, {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n }, {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function (_ref) {\n var id = _ref.id;\n return id !== pointer.id;\n });\n }\n }, {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this9 = this;\n\n this.pointerList = this.pointerList.filter(function (_ref2) {\n var source = _ref2.source;\n return source === _this9.eventsSource;\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.multiPointerMove(event, [ReactImageLightbox.parseMouseEvent(event)]);\n }\n }\n }, {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) {\n switch (event.type) {\n case 'pointerdown':\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n\n break;\n\n case 'pointermove':\n this.multiPointerMove(event, [ReactImageLightbox.parsePointerEvent(event)]);\n break;\n\n case 'pointerup':\n case 'pointercancel':\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n }\n }, {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this10 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function (eventTouch) {\n return _this10.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n this.multiPointerMove(event, [].map.call(event.changedTouches, function (eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n }\n }, {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this11 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function (touch) {\n return _this11.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) {\n this.handleSwipeStart(pointer);\n } else {\n this.handleMoveStart(pointer);\n }\n }\n }, {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n\n switch (this.pointerList.length) {\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n {\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n }\n\n case ACTION_SWIPE:\n {\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n }\n\n case ACTION_PINCH:\n {\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n\n switch (this.pointerList.length) {\n case 0:\n {\n this.eventsSource = SOURCE_ANY;\n break;\n }\n\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n // This happens:\n // - On a mouseDown event\n // - On a touchstart event\n\n }, {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref3) {\n var clientX = _ref3.x,\n clientY = _ref3.y;\n\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n // This happens:\n // - After a mouseDown and before a mouseUp event\n // - After a touchstart and before a touchend event\n\n }, {\n key: \"handleMove\",\n value: function handleMove(_ref4) {\n var clientX = _ref4.x,\n clientY = _ref4.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) {\n this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n }\n }, {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this12 = this;\n\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function () {\n _this12.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n }, {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref5) {\n var clientX = _ref5.x,\n clientY = _ref5.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref6) {\n var clientX = _ref6.x,\n clientY = _ref6.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) {\n return;\n }\n\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n\n if (xDiffAbs < boxRect.width / 4) {\n return;\n }\n }\n\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n }, {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref8 = _slicedToArray(_ref7, 2),\n a = _ref8[0],\n b = _ref8[1];\n\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n }, {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref10 = _slicedToArray(_ref9, 2),\n a = _ref10[0],\n b = _ref10[1];\n\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n }, {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function (_ref11) {\n var id = _ref11.id,\n x = _ref11.x,\n y = _ref11.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n }, {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function (oldPointer) {\n for (var i = 0; i < pointerList.length; i += 1) {\n if (pointerList[i].id === oldPointer.id) {\n return pointerList[i];\n }\n }\n\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList),\n clientX = _this$calculatePinchC.x,\n clientY = _this$calculatePinchC.y;\n\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n }, {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n\n }, {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n }, {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MAX_ZOOM_LEVEL) {\n this.zoomOutBtn.current.focus();\n }\n }\n }, {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n this.zoomInBtn.current.focus();\n }\n }\n }, {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n\n if (!this.caption.current) {\n return;\n }\n\n var _this$caption$current = this.caption.current.getBoundingClientRect(),\n height = _this$caption$current.height;\n\n var _this$caption$current2 = this.caption.current,\n scrollHeight = _this$caption$current2.scrollHeight,\n scrollTop = _this$caption$current2.scrollTop;\n\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) {\n event.preventDefault();\n }\n } // Detach key and mouse input events\n\n }, {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n\n }, {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n\n }, {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this13 = this;\n\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function () {\n done();\n }, 1);\n return;\n }\n\n var inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = function (errorEvent) {\n _this13.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n\n\n _this13.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, srcType, true))\n };\n });\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = function () {\n _this13.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n _this13.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n\n }, {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this14 = this;\n\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function (err) {\n // Give up showing image on error\n if (err) {\n return;\n } // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n\n\n if (_this14.props[srcType] !== imageSrc || _this14.didUnmount) {\n return;\n } // Force rerender with the new image\n\n\n _this14.forceUpdate();\n };\n }; // Load the images\n\n\n this.getSrcTypes().forEach(function (srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n\n if (props[type] && _this14.state.loadErrorStatus[type]) {\n _this14.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, type, false))\n };\n });\n } // Load unloaded images\n\n\n if (props[type] && !_this14.isImageLoaded(props[type])) {\n _this14.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n }\n });\n } // Request that the lightbox be closed\n\n }, {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this15 = this;\n\n // Call the parent close request\n var closeLightbox = function closeLightbox() {\n return _this15.props.onCloseRequest(event);\n };\n\n if (this.props.animationDisabled || event.type === 'keydown' && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n\n\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n }, {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this16 = this;\n\n // Reset the zoom level on image move\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function () {\n return _this16.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n\n this.keyPressed = false;\n this.moveRequested = true;\n\n if (direction === 'prev') {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n\n }, {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove('next', event);\n } // Request to transition to the previous image\n\n }, {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove('prev', event);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this17 = this;\n\n var _this$props = this.props,\n animationDisabled = _this$props.animationDisabled,\n animationDuration = _this$props.animationDuration,\n clickOutsideToClose = _this$props.clickOutsideToClose,\n discourageDownloads = _this$props.discourageDownloads,\n enableZoom = _this$props.enableZoom,\n imageTitle = _this$props.imageTitle,\n nextSrc = _this$props.nextSrc,\n prevSrc = _this$props.prevSrc,\n toolbarButtons = _this$props.toolbarButtons,\n reactModalStyle = _this$props.reactModalStyle,\n _onAfterOpen = _this$props.onAfterOpen,\n imageCrossOrigin = _this$props.imageCrossOrigin,\n reactModalProps = _this$props.reactModalProps,\n loader = _this$props.loader;\n var _this$state = this.state,\n zoomLevel = _this$state.zoomLevel,\n offsetX = _this$state.offsetX,\n offsetY = _this$state.offsetY,\n isClosing = _this$state.isClosing,\n loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n\n if (!animationDisabled && this.isAnimating()) {\n transitionStyle = _objectSpread2(_objectSpread2({}, transitionStyle), {}, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n } // Key endings to differentiate between images with the same src\n\n\n var keyEndings = {};\n this.getSrcTypes().forEach(function (_ref12) {\n var name = _ref12.name,\n keyEnding = _ref12.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n\n var images = [];\n\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this17.props[srcType]) {\n return;\n }\n\n var bestImageInfo = _this17.getBestImageForType(srcType);\n\n var imageStyle = _objectSpread2(_objectSpread2({}, transitionStyle), ReactImageLightbox.getTransform(_objectSpread2(_objectSpread2({}, transforms), bestImageInfo)));\n\n if (zoomLevel > MIN_ZOOM_LEVEL) {\n imageStyle.cursor = 'move';\n } // support IE 9 and 11\n\n\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function (key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n\n\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this17.props.imageLoadErrorMessage)));\n return;\n }\n\n if (bestImageInfo === null) {\n var loadingIcon = loader !== undefined ? loader : /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function (_, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n\n var imageSrc = bestImageInfo.src;\n\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else {\n images.push( /*#__PURE__*/React.createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === 'string' ? imageTitle : translate('Image'),\n draggable: false\n })));\n }\n };\n\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n\n addImage('nextSrc', 'ril-image-next ril__imageNext', {\n x: boxSize.width\n }); // Main Image\n\n addImage('mainSrc', 'ril-image-current', {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n\n addImage('prevSrc', 'ril-image-prev ril__imagePrev', {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread2({\n zIndex: 1000,\n backgroundColor: 'transparent'\n }, reactModalStyle.overlay),\n content: _objectSpread2({\n backgroundColor: 'transparent',\n overflow: 'hidden',\n // Needed, otherwise keyboard shortcuts scroll the page\n border: 'none',\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return /*#__PURE__*/React.createElement(Modal, _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this17.outerEl.current) {\n _this17.outerEl.current.focus();\n }\n\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate('Lightbox'),\n appElement: typeof global.window !== 'undefined' ? global.window.document.body : undefined\n }, reactModalProps), /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? 'ril-closing ril__outerClosing' : ''),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? 'normal' : 'reverse'\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n title: this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n\n }), nextSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n title: this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n\n }), /*#__PURE__*/React.createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function (button, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n title: this.props.zoomInLabel,\n className: ['ril-zoom-in', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomInButton'].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n title: this.props.zoomOutLabel,\n className: ['ril-zoom-out', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomOutButton'].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n title: this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n\n })))), this.props.imageCaption &&\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }], [{\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n }, {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: 'mouse',\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n }, {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n }, {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n\n }, {\n key: \"getTransform\",\n value: function getTransform(_ref13) {\n var _ref13$x = _ref13.x,\n x = _ref13$x === void 0 ? 0 : _ref13$x,\n _ref13$y = _ref13.y,\n y = _ref13$y === void 0 ? 0 : _ref13$y,\n _ref13$zoom = _ref13.zoom,\n zoom = _ref13$zoom === void 0 ? 1 : _ref13$zoom,\n width = _ref13.width,\n targetWidth = _ref13.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n\n if (width > windowWidth) {\n nextX += (windowWidth - width) / 2;\n }\n\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }]);\n\n return ReactImageLightbox;\n}(Component);\n\nReactImageLightbox.propTypes = {\n //-----------------------------\n // Image sources\n //-----------------------------\n // Main display image url\n mainSrc: PropTypes.string.isRequired,\n // eslint-disable-line react/no-unused-prop-types\n // Previous display image url (displayed to the left)\n // If left undefined, movePrev actions will not be performed, and the button not displayed\n prevSrc: PropTypes.string,\n // Next display image url (displayed to the right)\n // If left undefined, moveNext actions will not be performed, and the button not displayed\n nextSrc: PropTypes.string,\n //-----------------------------\n // Image thumbnail sources\n //-----------------------------\n // Thumbnail image url corresponding to props.mainSrc\n mainSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.prevSrc\n prevSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.nextSrc\n nextSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n //-----------------------------\n // Event Handlers\n //-----------------------------\n // Close window event\n // Should change the parent state such that the lightbox is not rendered\n onCloseRequest: PropTypes.func.isRequired,\n // Move to previous image event\n // Should change the parent state such that props.prevSrc becomes props.mainSrc,\n // props.mainSrc becomes props.nextSrc, etc.\n onMovePrevRequest: PropTypes.func,\n // Move to next image event\n // Should change the parent state such that props.nextSrc becomes props.mainSrc,\n // props.mainSrc becomes props.prevSrc, etc.\n onMoveNextRequest: PropTypes.func,\n // Called when an image fails to load\n // (imageSrc: string, srcType: string, errorEvent: object): void\n onImageLoadError: PropTypes.func,\n // Called when image successfully loads\n onImageLoad: PropTypes.func,\n // Open window event\n onAfterOpen: PropTypes.func,\n //-----------------------------\n // Download discouragement settings\n //-----------------------------\n // Enable download discouragement (prevents [right-click -> Save Image As...])\n discourageDownloads: PropTypes.bool,\n //-----------------------------\n // Animation settings\n //-----------------------------\n // Disable all animation\n animationDisabled: PropTypes.bool,\n // Disable animation on actions performed with keyboard shortcuts\n animationOnKeyInput: PropTypes.bool,\n // Animation duration (ms)\n animationDuration: PropTypes.number,\n //-----------------------------\n // Keyboard shortcut settings\n //-----------------------------\n // Required interval of time (ms) between key actions\n // (prevents excessively fast navigation of images)\n keyRepeatLimit: PropTypes.number,\n // Amount of time (ms) restored after each keyup\n // (makes rapid key presses slightly faster than holding down the key to navigate images)\n keyRepeatKeyupBonus: PropTypes.number,\n //-----------------------------\n // Image info\n //-----------------------------\n // Image title\n imageTitle: PropTypes.node,\n // Image caption\n imageCaption: PropTypes.node,\n // Optional crossOrigin attribute\n imageCrossOrigin: PropTypes.string,\n //-----------------------------\n // Lightbox style\n //-----------------------------\n // Set z-index style, etc., for the parent react-modal (format: https://github.com/reactjs/react-modal#styles )\n reactModalStyle: PropTypes.shape({}),\n // Padding (px) between the edge of the window and the lightbox\n imagePadding: PropTypes.number,\n wrapperClassName: PropTypes.string,\n //-----------------------------\n // Other\n //-----------------------------\n // Array of custom toolbar buttons\n toolbarButtons: PropTypes.arrayOf(PropTypes.node),\n // When true, clicks outside of the image close the lightbox\n clickOutsideToClose: PropTypes.bool,\n // Set to false to disable zoom functionality and hide zoom buttons\n enableZoom: PropTypes.bool,\n // Override props set on react-modal (https://github.com/reactjs/react-modal)\n reactModalProps: PropTypes.shape({}),\n // Aria-labels\n nextLabel: PropTypes.string,\n prevLabel: PropTypes.string,\n zoomInLabel: PropTypes.string,\n zoomOutLabel: PropTypes.string,\n closeLabel: PropTypes.string,\n imageLoadErrorMessage: PropTypes.node,\n // custom loader\n loader: PropTypes.node\n};\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: 'Close lightbox',\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: 'Next image',\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: 'Previous image',\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: '',\n zoomInLabel: 'Zoom in',\n zoomOutLabel: 'Zoom out',\n imageLoadErrorMessage: 'This image failed to load',\n loader: undefined\n};\n\nexport default ReactImageLightbox;\n","import e from\"prop-types\";import n,{useState as t,useEffect as a,useCallback as i,createContext as r,useLayoutEffect as o,useRef as l}from\"react\";import s from\"classnames\";import c from\"prismjs\";import\"prismjs/components/prism-clike\";import\"prismjs/components/prism-csharp\";import\"prismjs/components/prism-css\";import\"prismjs/components/prism-javascript\";import\"prismjs/components/prism-markup\";import{createPortal as m}from\"react-dom\";import{useCookies as d}from\"react-cookie\";import u from\"react-image-lightbox\";import\"react-image-lightbox/style.css\";var p=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Discord\"),n.createElement(\"path\",{d:\"M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z\"})),g=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 184 184\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Email\"),n.createElement(\"path\",{d:\"M160.746,24.61H23.254C10.432,24.61,0,35.042,0,47.864v88.271c0,12.822,10.432,23.254,23.254,23.254h137.492c12.822,0,23.254-10.432,23.254-23.254V47.864C184,35.042,173.568,24.61,160.746,24.61z M157.113,39.61L92,89.909L26.887,39.61H157.113z M160.746,144.39H23.254c-4.551,0-8.254-3.703-8.254-8.254V49.382l72.415,55.94c1.35,1.043,2.968,1.564,4.585,1.564s3.235-0.521,4.585-1.564L169,49.382v86.753C169,140.687,165.297,144.39,160.746,144.39z\"})),h=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Facebook\"),n.createElement(\"path\",{d:\"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z\"})),f=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"GitHub\"),n.createElement(\"path\",{d:\"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"})),v=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Instagram\"),n.createElement(\"path\",{d:\"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z\"})),y=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"LinkedIn\"),n.createElement(\"path\",{d:\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\"})),b=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Patreon\"),n.createElement(\"path\",{d:\"M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z\"})),E=n.createElement(\"svg\",{focusable:\"false\",viewBox:\"0 0 25.576 30.177\",width:\"25.576px\",height:\"30.177px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"path\",{d:\"M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 01.314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 011.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 01-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 00-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 01-.096.035H7.266z\",fill:\"#253b80\"}),n.createElement(\"path\",{d:\"M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 00.695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 00-1.336-1.03z\",fill:\"#179bd7\"}),n.createElement(\"path\",{d:\"M21.754 7.151a9.757 9.757 0 00-1.203-.267 15.284 15.284 0 00-2.426-.177h-7.352a1.172 1.172 0 00-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 011.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 00-1.017-.429 9.045 9.045 0 00-.277-.087z\",fill:\"#222d65\"}),n.createElement(\"path\",{d:\"M9.614 7.699a1.169 1.169 0 011.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 011.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 00.795.932h5.791l1.454-9.225 1.564-9.906z\",fill:\"#253b80\"})),w=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"translateY(1px)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Twitch\"),n.createElement(\"path\",{d:\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"})),N=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"scale(1.1)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Twitter\"),n.createElement(\"path\",{d:\"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z\"})),k=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Unity\"),n.createElement(\"path\",{d:\"M24 9.533L21.374 0 11.57 2.555l-1.45 2.49-2.945-.022L0 12l7.176 6.978 2.943-.023 1.454 2.49 9.8 2.554L24 14.47 22.508 12 24 9.533zM10.356 5.445l7.499-1.874-4.304 7.251H4.94l5.416-5.377zm0 13.11L4.94 13.18h8.61l4.305 7.251-7.5-1.874zm9.598.696l-4.307-7.25 4.307-7.253L22.033 12l-2.08 7.25z\"})),x=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"scale(1.125)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"YouTube\"),n.createElement(\"path\",{d:\"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z\"})),T={discord:p,email:g,facebook:h,github:f,instagram:v,linkedIn:y,patreon:b,paypal:E,twitch:w,twitter:N,unity:k,youtube:x},C=e.oneOfType([e.string,e.shape({key:e.string,name:e.string,color:e.string,url:e.string,icon:e.element})]),z={discord:{key:\"discord\",name:\"Discord\",color:\"#7289da\",url:\"https://discord.gg/DdYyWVb\",icon:p},email:{key:\"email\",name:\"Email\",url:\"mailto:support@zigurous.com\",icon:g},facebook:{key:\"facebook\",name:\"Facebook\",color:\"#1877f2\",url:\"https://facebook.com/zigurous\",icon:h},github:{key:\"github\",name:\"GitHub\",url:\"https://github.com/zigurous\",icon:f},instagram:{key:\"instagram\",name:\"Instagram\",color:\"#e4405f\",url:\"https://instagram.com/zigurous\",icon:v},patreon:{key:\"patreon\",name:\"Patreon\",color:\"#ff424d\",url:\"https://patreon.com/zigurous\",icon:b},paypal:{key:\"paypal\",name:\"PayPal\",color:\"#00457c\",url:\"https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8\",icon:E},twitch:{key:\"twitch\",name:\"Twitch\",color:\"#9146ff\",url:\"https://twitch.tv/zigurous\",icon:w},twitter:{key:\"twitter\",name:\"Twitter\",color:\"#1da1f2\",url:\"https://twitter.com/zigurous\",icon:N},unity:{key:\"unity\",name:\"Unity\",url:\"https://assetstore.unity.com/publishers/51884\",icon:k},youtube:{key:\"youtube\",name:\"YouTube\",color:\"#ff0000\",url:\"https://youtube.com/c/zigurous?sub_confirmation=1\",icon:x}},O={wordmark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 596 192\"},n.createElement(\"path\",{d:\"M528.71,98.72a18.85,18.85,0,0,0-7.36-5.56,92.48,92.48,0,0,0-10.88-3.52A43,43,0,0,1,501.91,87a4.28,4.28,0,0,1-2.76-4,4.21,4.21,0,0,1,1.72-3.52,8.33,8.33,0,0,1,5-1.28A9.36,9.36,0,0,1,511.91,80a7.68,7.68,0,0,1,2.76,5.16h17c-.64-6.4-3.12-11.56-7.48-15.4S513.91,64,506.39,64a31,31,0,0,0-13.2,2.56,19.26,19.26,0,0,0-8.4,7A17.5,17.5,0,0,0,482,83.28q0,6.36,3.12,10.08a18.58,18.58,0,0,0,7.4,5.48,79.1,79.1,0,0,0,10.8,3.28A55.41,55.41,0,0,1,512,105a4.27,4.27,0,0,1,2.68,4,4.37,4.37,0,0,1-1.88,3.64,9,9,0,0,1-5.32,1.4,9.94,9.94,0,0,1-6.36-2,7.23,7.23,0,0,1-2.92-5.2H480a20.18,20.18,0,0,0,4,10.84,23.8,23.8,0,0,0,9.68,7.64,33.14,33.14,0,0,0,14,2.8,32.3,32.3,0,0,0,12.88-2.44A19.55,19.55,0,0,0,529,118.8a16.93,16.93,0,0,0,3-9.76C531.91,104.72,530.83,101.28,528.71,98.72Z\"}),n.createElement(\"polygon\",{points:\"64 40.01 64 58.01 101.8 58.01 97.6 64.01 65.4 110.01 64 112.01 64 128.01 77.6 128.01 128 128.01 128 110.01 90.2 110.01 122.4 64.01 126.6 58.01 128 56.01 128 40.01 114.4 40.01 64 40.01\"}),n.createElement(\"path\",{d:\"M368,64a32,32,0,1,0,32,32.16v-.24A32,32,0,0,0,368,64Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,368,112Z\"}),n.createElement(\"path\",{d:\"M312,71.23V64H292v36.24a12,12,0,0,1-24,0V64H248v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V96a16,16,0,0,1,16-16h4V64.07c-.68,0-1.32-.08-2-.08A25.92,25.92,0,0,0,312,71.23Z\"}),n.createElement(\"path\",{d:\"M452,83.23v17a12,12,0,0,1-24,0V64H408v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V64H452Z\"}),n.createElement(\"path\",{d:\"M216,69.76A25.37,25.37,0,0,0,200,64c-15.48,0-28,14.32-28,32a35.72,35.72,0,0,0,3.4,15.32,30.58,30.58,0,0,0,10.4,12.24,24.93,24.93,0,0,0,28.4,0,18.85,18.85,0,0,0,1.8-1.32V130c0,7.72-7.16,14-16,14a17,17,0,0,1-10.4-3.4l-8.92,12.72a37.37,37.37,0,0,0,35.32,4c11.8-4.64,20-15.12,20-27.28V64H216ZM204,112a15.93,15.93,0,0,1-14.72-9.8A15.22,15.22,0,0,1,188,96a16,16,0,1,1,30.08,7.6,17.11,17.11,0,0,1-2.08,3A15.93,15.93,0,0,1,204,112Z\"}),n.createElement(\"rect\",{x:\"140.01\",y:\"64.01\",width:\"20\",height:\"64\"}),n.createElement(\"path\",{d:\"M150,36a11,11,0,0,0-10,6.16,9.83,9.83,0,0,0,0,8.64,11.16,11.16,0,0,0,20,0,9.83,9.83,0,0,0,0-8.64A11,11,0,0,0,150,36Z\"})),lettermark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\"},n.createElement(\"polygon\",{points:\"382.81 331.67 382.81 384.03 311.24 384.03 347.9 331.67 382.81 331.67\"}),n.createElement(\"polygon\",{points:\"380.48 128.03 237.93 331.67 312.99 331.67 276.33 384.03 129.13 384.03 271.68 180.39 308.33 128.03 380.48 128.03\"}),n.createElement(\"polygon\",{points:\"272.26 128.03 235.6 180.39 150.08 180.39 150.08 128.03 272.26 128.03\"})),logomark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\"},n.createElement(\"polygon\",{points:\"368.46 177.61 256 112.68 143.54 177.61 256 242.54 368.46 177.61\"}),n.createElement(\"polygon\",{points:\"128 334.39 240.46 399.32 240.46 269.46 128 204.53 128 334.39\"}),n.createElement(\"polygon\",{points:\"384 204.53 271.54 269.46 271.54 399.32 384 334.39 384 204.53\"}))};function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0||(i[t]=e[t]);return i}var j=[\"activeClassName\",\"children\",\"className\",\"ElementType\",\"external\",\"href\",\"path\",\"rel\",\"target\",\"to\",\"underlined\",\"unstyled\"];function S(e){var t=e.activeClassName,a=e.children,i=e.className,r=e.ElementType,o=void 0===r?\"a\":r,l=e.external,c=void 0!==l&&l,m=e.href,d=e.path,u=e.rel,p=e.target,g=e.to,h=e.underlined,f=void 0!==h&&h,v=e.unstyled,y=void 0!==v&&v,b=_(e,j);return n.createElement(o,L({},b,\"a\"===o?{href:m||d||g,rel:u||(c?\"noopener noreferrer\":void 0),target:p||(c?\"_blank\":void 0)}:{to:g||d||m,href:m||d||g,activeClassName:t},{className:s({link:!y},{\"link--underlined\":f&&!y},i)}),a)}function I(e,t){return e?n.createElement(\"img\",{alt:\"Logo\",src:e}):O[t]}function M(e){var t=e.fill,a=e.image,i=e.onClick,r=e.size,o=e.style,l=e.variant,c=void 0===l?\"wordmark\":l;return n.createElement(\"div\",{className:s(\"logo\",c,void 0===r?\"medium\":r,e.className),style:L({},o,{fill:t})},i?n.createElement(\"button\",{\"aria-label\":\"Logo\",onClick:function(e){e.target.blur(),i()}},I(a,c)):I(a,c))}function P(e){var t=e.bordered,a=e.copyright,i=e.hideLogo,r=void 0!==i&&i,o=e.LinkElementType,l=void 0===o?\"a\":o,c=e.links,m=void 0===c?[]:c,d=e.onLinkClick,u=e.onLogoClick,p=e.sticky,g=e.theme,h=e.transparent;return n.createElement(\"footer\",{className:s(\"app-footer\",{\"app-footer--bordered\":void 0!==t&&t},{\"app-footer--transparent\":void 0!==h&&h},{\"app-footer--sticky\":void 0!==p&&p},e.className),\"data-theme\":g},n.createElement(\"div\",{className:\"container\"},n.createElement(\"div\",{className:\"row align-items-center margin-top-lg margin-bottom-lg\"},n.createElement(\"div\",{className:\"col font-xs font-weight-500\"},n.createElement(\"span\",null,!r&&n.createElement(M,{onClick:u,size:\"xs\"}),a&&n.createElement(\"span\",{className:\"copyright margin-left-xl margin-right-xl\"},a)),m&&m.length>0&&n.createElement(\"span\",{className:\"links\"},m.map(function(e){return n.createElement(S,{\"aria-label\":e.name,className:\"color-inherit margin-left-md margin-right-md\",ElementType:e.ElementType||l,external:e.external,key:e.id||e.to,onClick:function(){d&&d(e)},to:e.to},e.name)}))))))}S.propTypes={activeClassName:e.string,children:e.node,className:e.string,ElementType:e.elementType,external:e.bool,href:e.string,path:e.string,rel:e.string,target:e.string,to:e.string,underlined:e.bool,unstyled:e.bool},M.size=Object.freeze({xs:\"xs\",extraSmall:\"extraSmall\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),M.variant=Object.freeze({wordmark:\"wordmark\",lettermark:\"lettermark\",logomark:\"logomark\"}),M.propTypes={className:e.string,fill:e.string,image:e.string,onClick:e.func,size:e.oneOf(Object.values(M.size)),style:e.object,variant:e.oneOf(Object.values(M.variant))},P.propTypes={bordered:e.bool,className:e.string,copyright:e.node,hideLogo:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),onLinkClick:e.func,onLogoClick:e.func,sticky:e.bool,theme:e.string,transparent:e.bool};var V=[\"ariaHidden\",\"children\",\"className\",\"inactive\",\"material\",\"name\",\"size\",\"theme\"];function H(e){var t,a,i=e.ariaHidden,r=void 0===i||i,o=e.children,l=e.className,c=e.inactive,m=e.material,d=void 0===m||m,u=e.name,p=e.size,g=void 0===p?\"medium\":p,h=e.theme,f=_(e,V);return n.createElement(\"i\",L({\"aria-hidden\":r,className:s(\"icon\",(t={},t[\"icon--\"+g]=g,t),(a={},a[\"icon--\"+h]=h,a),{\"icon--active\":!c},{\"icon--inactive\":c},{\"icon--material\":d},l)},f),u||o)}function A(e){if(null===e)return 0;var n=e.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]}function B(e,n){var t=A(e),a=A(n),i=Math.min(t,a);return(Math.max(t,a)+.05)/(i+.05)}function q(e){var n=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function R(e){function n(e){var n=e.toString(16);return 1===n.length?\"0\"+n:n}return\"#\"+n(e[0])+n(e[1])+n(e[2])}function F(e,n){var t;return function(){var a=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return e.apply(a,i)},n)}}function W(e,n,t){e.addEventListener?e.addEventListener(n,t):e.attachEvent&&e.attachEvent(\"on\"+n,t)}function D(e,n,t){e.removeEventListener?e.removeEventListener(n,t):e.detachEvent&&e.detachEvent(\"on\"+n,t)}function Z(e){return void 0===e&&(e=function(){}),function(n){if(!n.defaultPrevented){var t=!1;\"Enter\"===n.key&&(t=!0,e(n)),t&&n.preventDefault()}}}function Y(e,n){return!!n&&(\"/\"===e?e===n.pathname:n.pathname.includes(e))}function U(e,n){return Object.keys(e).reduce(function(t,a){return Array.isArray(n)?n.includes(a)||(t[a]=e[a]):a!==n&&(t[a]=e[a]),t},{})}function G(e){void 0===e&&(e=\"smooth\"),\"undefined\"!=typeof window&&window.scrollTo({top:0,behavior:e})}function J(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document?(window.innerWidth||0)-(document.documentElement.clientWidth||0):0}function K(e){return(e.scrollHeight||0)>(e.clientHeight||0)}function $(e){return(e.scrollWidth||0)>(e.clientWidth||0)}function Q(e,n){var t,a;return function(){var i=this,r=arguments;a?(clearTimeout(t),t=setTimeout(function(){Date.now()-a>=n&&(e.apply(i,r),a=Date.now())},n-(Date.now()-a))):(e.apply(i,r),a=Date.now())}}function X(e,n,t){c.highlight(e,n,t)}function ee(e,n){c.highlightAll(e,n)}function ne(e,n,t){c.highlightAllUnder(e,n,t)}function te(e,n,t){c.highlightElement(e,n,t)}function ae(e){var t=e.hidden,a=e.LinkElementType,i=void 0===a?\"a\":a,r=e.links,o=void 0===r?[]:r,l=e.location,c=void 0===l?\"undefined\"!=typeof window&&window.location:l,m=e.onLinkClick;return n.createElement(\"nav\",{className:s(\"navbar\",{\"display-none\":void 0!==t&&t},e.className)},n.createElement(\"ul\",null,o.map(function(e){var t=e.to||e.path||e.href,a=Y(t,c);return n.createElement(\"li\",{key:t},n.createElement(S,L({},U(e,[\"leftIcon\",\"rightIcon\"]),{activeClassName:\"\",\"aria-current\":a?\"page\":\"false\",\"aria-label\":e.name,className:s({active:a}),ElementType:e.ElementType||i,onClick:function(){m&&m(e)},unstyled:!0}),e.leftIcon&&n.createElement(H,{className:\"margin-right-md\",name:e.leftIcon,size:\"small\"}),e.name,e.rightIcon&&n.createElement(H,{className:\"margin-left-md\",name:e.rightIcon,size:\"small\"})))})))}function ie(e){var n=e.children,i=e.rootElement,r=void 0===i?\"#root\":i,o=t(null),l=o[0],s=o[1];return a(function(){s(\"undefined\"!=typeof document?document.querySelector(r):null)},[r]),l?m(n,l):null}H.size=Object.freeze({inherit:\"inherit\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),H.theme=Object.freeze({light:\"light\",dark:\"dark\"}),H.propTypes={ariaHidden:e.bool,children:e.node,className:e.string,inactive:e.bool,material:e.bool,name:e.string,size:e.oneOf(Object.keys(H.size)),theme:e.oneOf(Object.values(H.theme))},ae.propTypes={className:e.string,hidden:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,onLinkClick:e.func},ie.propTypes={children:e.node.isRequired,rootElement:e.string};var re=[\"altText\",\"backgroundColor\",\"className\",\"ElementType\",\"foregroundColor\",\"icon\",\"iconName\",\"innerPadding\",\"rounded\",\"size\"];function oe(e){var t=e.backgroundColor,a=e.className,i=e.ElementType,r=void 0===i?\"i\":i,o=e.foregroundColor,l=e.icon,c=e.iconName,m=e.innerPadding,d=void 0===m?8:m,u=e.rounded,p=void 0!==u&&u,g=e.size,h=void 0===g?24:g,f=_(e,re);return n.createElement(r,L({},f,{className:s(\"icon\",\"social-icon\",{\"social-icon--rounded\":p},c,a),style:{backgroundColor:t,fill:o,width:h,height:h,padding:d}}),l||T[c])}function le(e){var t=e.backgroundColor,a=e.foregroundColor,i=e.hidden,r=e.iconInnerPadding,o=void 0===r?16:r,l=e.iconSize,c=void 0===l?32:l,m=e.iconSpacing,d=e.links,u=void 0===d?[]:d,p=e.onLinkClick,g=e.rounded,h=void 0!==g&&g,f=e.wrap,v=void 0!==f&&f;return n.createElement(\"div\",{className:s(\"social-nav-links\",{\"display-none\":void 0!==i&&i},e.className)},n.createElement(\"ul\",{className:s(\"social-nav-links__list\",{\"flex-wrap\":v})},u.map(function(e){var i=\"string\"==typeof e?z[e]:e;return n.createElement(\"li\",{className:\"social-nav-links__item\",key:i.key,style:{margin:m}},n.createElement(oe,{\"aria-label\":i.name,backgroundColor:t,ElementType:\"a\",foregroundColor:a||i.color,href:i.url,icon:i.icon,iconName:i.key,innerPadding:o,onClick:function(){p&&p(i)},rel:\"noopener noreferrer\",rounded:h,size:c,target:\"_blank\"}))})))}function se(e,n){var i=\"undefined\"!=typeof window?window.matchMedia(e):null,r=t(i),o=r[0],l=r[1],s=t(Boolean(o&&o.matches)),c=s[0],m=s[1];return a(function(){\"undefined\"!=typeof window&&l(window.matchMedia(e))},[e]),a(function(){var e,t=o;return t&&W(t,\"change\",e=function(){m(t.matches),n&&n(t.matches)}),function(){t&&e&&D(t,\"change\",e)}},[o,n]),c}oe.propTypes={altText:e.string,backgroundColor:e.string,className:e.string,ElementType:e.elementType,foregroundColor:e.string,icon:e.element,iconName:e.oneOf(Object.keys(T)),innerPadding:e.oneOfType([e.number,e.string]),rounded:e.bool,size:e.oneOfType([e.number,e.string])},le.propTypes={backgroundColor:e.string,className:e.string,foregroundColor:e.string,hidden:e.bool,iconInnerPadding:e.oneOfType([e.number,e.string]),iconSize:e.oneOfType([e.number,e.string]),iconSpacing:e.oneOfType([e.number,e.string]),links:e.arrayOf(C),onLinkClick:e.func,rounded:e.bool,wrap:e.bool};var ce={sm:576,small:576,md:768,medium:768,lg:992,large:992,xl:1200,extraLarge:1200};function me(e){return se(\"(min-width: \"+e+\")\")}function de(e){return se(\"(max-width: \"+e+\")\")}function ue(e){return se(\"(min-width: \"+ce[e]+\"px)\")}function pe(e){return se(\"(max-width: \"+(ce[e]-1)+\"px)\")}function ge(e,n,t){void 0===e&&(e=[]),void 0===t&&(t=function(){return null});var a=e.find(function(e){return t(n,e)});return a?a.documentTitle:null}function he(e){var n=t(!0),i=n[0],r=n[1],o=function(){r(!1)};return a(function(){var n=e.current;return n&&i&&(n.complete?o():W(n,\"load\",o)),function(){n&&D(n,\"load\",o)}},[e,i]),i}function fe(e,n){void 0===n&&(n=function(){});var t=!he(e);return a(function(){t&&n()},[t,n]),t}function ve(e,n){var i=t(function(){return function(e,n){if(\"undefined\"==typeof window||!localStorage)return n;var t=localStorage.getItem(e);return t&&JSON.parse(t)||n}(e,n)}),r=i[0],o=i[1];return a(function(){\"undefined\"!=typeof window&&localStorage&&localStorage.setItem(e,JSON.stringify(r))},[e,r]),[r,o]}function ye(e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),a(function(){if(\"undefined\"!=typeof document)if(e){if(n){var t=J();t>0&&(document.body.style.paddingRight=t+\"px\")}document.body.classList.add(\"overflow-hidden\")}else document.body.classList.remove(\"overflow-hidden\"),n&&(document.body.style.paddingRight=null)},[e,n])}function be(){var e=t(!1),n=e[0],i=e[1];return a(function(){i(!0)},[]),n}function Ee(e,n,i){void 0===n&&(n=6),void 0===i&&(i=void 0);var r=t(0),o=r[0],l=r[1],s=o*n,c=s+n,m=Math.ceil(e.length/n);return a(function(){if(i&&\"undefined\"!=typeof sessionStorage){var e=sessionStorage.getItem(i),n=parseInt(e,10);Number.isNaN(n)||l(n),sessionStorage.removeItem(i)}},[i,e]),[{page:o,paginated:m>1,currentPage:o,totalPages:m,itemsPerPage:n,items:e.slice(s,c)},l]}function we(e,n,r){void 0===r&&(r=void 0);var o=t(\"\"),l=o[0],s=o[1],c=t(null),m=c[0],d=c[1],u=i(function(t){var a=t.toLowerCase().replace(\" \",\"\").trim();return e.filter(function(e){return n(e,a)})},[e,n]);return a(function(){if(r&&e.length>0&&\"undefined\"!=typeof sessionStorage){var n=sessionStorage.getItem(r);n&&(s(n),d(u(n))),sessionStorage.removeItem(r)}},[r,e,u]),[{query:l,results:m,value:l,onChange:function(e){s(e.target.value)},onSearch:function(e){d(e?u(e):null)}},s,d]}var Ne=r({theme:\"dark\",setTheme:function(){},toggleTheme:function(){}});function ke(e){void 0===e&&(e=\"light\");var n=ve(\"theme\",e),t=n[0],a=n[1],r=i(function(){a(\"dark\"===t?\"light\":\"dark\")},[t,a]);return\"undefined\"!=typeof window&&document&&document.documentElement&&document.documentElement.style.setProperty(\"color-scheme\",t),[t,a,r]}function xe(){var e=t((\"undefined\"!=typeof document?document.querySelector('link[rel*=\"icon\"]'):null)||function(){if(\"undefined\"!=typeof document){var e=document.createElement(\"link\");return e.setAttribute(\"rel\",\"favicon icon\"),document.head.appendChild(e),e}return null}())[0],n=se(\"(prefers-color-scheme:light)\"),a=se(\"(prefers-color-scheme:dark)\"),i=null;if(\"undefined\"!=typeof document&&(n?i=document.querySelector('link[rel*=\"icon\"][media=\"(prefers-color-scheme:light)\"]'):a&&(i=document.querySelector('link[rel*=\"icon\"][media=\"(prefers-color-scheme:dark)\"]'))),i&&e){var r=new URL(i.href);e.setAttribute(\"type\",i.type),e.setAttribute(\"href\",r.pathname)}return e}function Te(e){var i=e.animated,r=void 0!==i&&i,o=e.className,l=e.hideSocialLinks,c=void 0===l||l,m=e.LinkElementType,d=void 0===m?\"a\":m,u=e.links,p=void 0===u?[]:u,g=e.location,h=void 0===g?\"undefined\"!=typeof window&&window.location:g,f=e.onLinkClick,v=e.rootElement,y=e.socialLinks,b=void 0===y?[]:y,E=e.theme,w=t(!1),N=w[0],k=w[1];return ye(N,!0),a(function(){k(!1)},[h]),n.createElement(n.Fragment,null,n.createElement(\"button\",{\"aria-label\":N?\"Close\":\"Open\",className:\"navmenu__button\",onClick:function(){return k(!N)},size:\"small\",style:{zIndex:N?1055:void 0}},n.createElement(H,{name:N?\"close\":\"menu\",material:!0})),N&&n.createElement(ie,{rootElement:v},n.createElement(\"div\",{className:s(\"navmenu\",{\"navmenu--open\":N,\"navmenu--closed\":!N},{\"navmenu--animated\":r},o),\"data-theme\":E},n.createElement(\"div\",{className:\"navmenu__overlay\"}),n.createElement(\"div\",{className:\"navmenu__container container\"},n.createElement(\"div\",{className:\"navmenu__wrapper\"},n.createElement(\"ul\",{className:\"navmenu__list\"},p.map(function(e){var t=e.to||e.path||e.href,a=Y(t,h);return n.createElement(\"li\",{className:\"navmenu__item\",key:t},n.createElement(S,L({},U(e,[\"leftIcon\",\"rightIcon\"]),{activeClassName:\"\",\"aria-current\":a?\"page\":\"false\",\"aria-label\":e.name,className:s({active:a}),ElementType:e.ElementType||d,onClick:function(){f&&f(e)},unstyled:!0}),e.name))})),!c&&n.createElement(le,{foregroundColor:\"inherit\",iconInnerPadding:10,iconSize:20,links:Object.values(b)}))))))}function Ce(e){var t=e.bordered,a=e.fluid,i=void 0!==a&&a,r=e.hideLogo,o=void 0!==r&&r,l=e.hideNavigation,c=void 0!==l&&l,m=e.hideSocialLinks,d=void 0!==m&&m,u=e.LinkElementType,p=void 0===u?\"a\":u,g=e.links,h=void 0===g?[]:g,f=e.location,v=void 0===f?\"undefined\"!=typeof window&&window.location:f,y=e.logoSize,b=void 0===y?M.size.small:y,E=e.logoVariant,w=void 0===E?M.variant.wordmark:E,N=e.onLogoClick,k=e.onLinkClick,x=e.onSocialLinkClick,T=e.rootElement,C=e.socialLinks,z=void 0===C?[]:C,O=e.sticky,L=e.theme,_=e.transparent;return n.createElement(\"header\",{className:s(\"app-header\",{\"app-header--bordered\":void 0!==t&&t},{\"app-header--transparent\":void 0!==_&&_},{\"app-header--sticky\":void 0!==O&&O},e.className),\"data-theme\":L},n.createElement(\"div\",{className:s({container:!i,\"container-fluid\":i})},n.createElement(\"div\",{className:\"app-header__content left\"},!o&&n.createElement(M,{onClick:N,size:b,variant:w}),!c&&n.createElement(ae,{LinkElementType:p,links:h,location:v,onLinkClick:k,theme:L})),n.createElement(\"div\",{className:\"app-header__content right\"},!d&&z&&z.length>0&&n.createElement(le,{iconInnerPadding:10,iconSize:20,links:z,onLinkClick:x}),!c&&n.createElement(Te,{hideSocialLinks:d,LinkElementType:p,links:h,location:v,logoSize:b,logoVariant:w,onLinkClick:k,onLogoClick:N,rootElement:T,socialLinks:z,theme:L}))))}function ze(e,n){return void 0===e&&(e=\"en-us\"),void 0===n&&(n=e),{ios:\"https://linkmaker.itunes.apple.com/images/badges/\"+e+\"/badge_appstore-lrg.svg\",android:\"https://raw.github.com/yjb94/google-play-badge-svg/master/img/\"+n+\"_get.svg?sanitize=true\"}}function Oe(e){var a=e.alt,i=void 0===a?\"Download on the App Store\":a,r=e.className,l=e.defaultLocale,c=void 0===l?\"en-us\":l,m=e.locale,d=void 0===m?\"undefined\"!=typeof navigator&&navigator.language||c:m,u=e.platform,p=e.width,g=void 0===p?200:p,h=e.height,f=void 0===h?g/3.375:h,v=e.target,y=void 0===v?\"_blank\":v,b=e.url,E=d=d.toLowerCase();-1===[\"zh-cn\",\"zh-tw\"].indexOf(d)&&(E=d.split(/[_-]/)[0]);var w=t(ze(d,E)),N=w[0],k=w[1];return o(function(){k(ze(d,E))},[d,E]),n.createElement(\"a\",{className:s(\"app-store-badge\",r),href:b,target:y,style:{width:g,height:f}},n.createElement(\"img\",{alt:i||\"\",src:N[u],onError:function(){k(ze(c,E))}}))}function Le(e){var t,a=e.className,i=e.direction,r=void 0===i?\"right\":i,o=e.LinkElementType,l=void 0===o?\"a\":o,c=e.links,m=void 0===c?[]:c,d=e.theme;return n.createElement(\"div\",{className:s(\"app-utility-bar\",(t={},t[\"app-utility-bar--\"+r]=r,t),a),\"data-theme\":d},n.createElement(\"div\",{className:\"container\"},n.createElement(\"div\",{className:\"row\"},n.createElement(\"div\",{className:\"col font-xs font-weight-500\"},m.map(function(e){return n.createElement(S,L({},e,{\"aria-label\":e.name,className:\"color-inherit margin-left-md margin-right-md\",ElementType:e.ElementType||l,key:e.to||e.path||e.href}),e.name)})))))}function _e(e){var t,a=e.children,i=e.className,r=e.pill,o=void 0!==r&&r,l=e.type,c=void 0===l?\"solid\":l;return n.createElement(\"div\",{className:s(\"badge\",(t={},t[\"badge--\"+c]=c,t),{\"badge--pill\":o},i)},a)}Te.propTypes={animated:e.bool,className:e.string,hideSocialLinks:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,onLinkClick:e.func,rootElement:e.string,socialLinks:e.arrayOf(C),theme:e.string},Ce.propTypes={bordered:e.bool,className:e.string,fluid:e.bool,hideLogo:e.bool,hideNavigation:e.bool,hideSocialLinks:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,logoSize:e.oneOf(Object.values(M.size)),logoVariant:e.oneOf(Object.values(M.variant)),onLogoClick:e.func,onLinkClick:e.func,onSocialLinkClick:e.func,rootElement:e.string,socialLinks:e.arrayOf(C),sticky:e.bool,theme:e.string,transparent:e.bool},Oe.platform=Object.freeze({ios:\"ios\",android:\"android\"}),Oe.propTypes={alt:e.string,className:e.string,defaultLocale:e.string,locale:e.string,platform:e.oneOf(Object.values(Oe.platform)).isRequired,width:e.number,height:e.number,target:e.string,url:e.string.isRequired},Le.propTypes={className:e.string,direction:e.oneOf([\"left\",\"right\"]),LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),theme:e.string},_e.type=Object.freeze({solid:\"solid\",outline:\"outline\"}),_e.propTypes={children:e.node,className:e.string,pill:e.bool,type:e.oneOf(Object.values(_e.type))};var je=[\"children\",\"className\",\"color\",\"icon\",\"iconElement\",\"iconName\",\"onClick\",\"shape\",\"size\",\"style\",\"styles\"];function Se(e){var t,a,i,r,o=e.children,l=e.className,c=e.color,m=void 0===c?\"default\":c,d=e.icon,u=e.iconElement,p=e.iconName,g=e.onClick,h=e.shape,f=void 0===h?\"rounded-corners\":h,v=e.size,y=void 0===v?\"small\":v,b=e.style,E=void 0===b?\"solid\":b,w=e.styles,N=_(e,je);return n.createElement(\"button\",L({className:s(\"btn\",(t={},t[\"btn--\"+m]=m,t),(a={},a[\"btn--\"+f]=f,a),(i={},i[\"btn--\"+E]=E,i),(r={},r[\"btn--\"+y]=y,r),{\"btn--icon-only\":\"only\"===d},l),onClick:g,style:w},N),\"left\"===d&&n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper margin-right-md\"},u||n.createElement(H,{name:p,size:\"inherit\"})),\"only\"===d?n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper\"},n.createElement(H,{name:p,size:\"inherit\"})):o,\"right\"===d&&n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper margin-left-md\"},u||n.createElement(H,{name:p,size:\"inherit\"})))}function Ie(e){var t,a=e.children,i=e.className,r=e.layout,o=void 0===r?\"horizontal\":r,l=e.spacing,c=void 0===l||l;return n.createElement(\"div\",{className:s(\"btn-group\",(t={},t[\"btn-group--\"+o]=o,t),{\"btn-group--spacing\":c},i)},a)}Se.color=Object.freeze({default:\"default\",primary:\"primary\",secondary:\"secondary\",tertiary:\"tertiary\",success:\"success\",danger:\"danger\",warning:\"warning\",info:\"info\"}),Se.shape=Object.freeze({square:\"square\",roundedCorners:\"rounded-corners\",rounded:\"rounded\",circle:\"circle\"}),Se.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),Se.style=Object.freeze({solid:\"solid\",outline:\"outline\",text:\"text\",none:\"unstyled\"}),Se.propTypes={children:e.node,className:e.string,color:e.oneOf(Object.values(Se.color)),icon:e.oneOf([\"left\",\"right\",\"only\"]),iconElement:e.element,iconName:e.string,onClick:e.func,shape:e.oneOf(Object.values(Se.shape)),size:e.oneOf(Object.values(Se.size)),style:e.oneOf(Object.values(Se.style)),styles:e.object},Ie.layout=Object.freeze({horizontal:\"horizontal\",vertical:\"vertical\"}),Ie.propTypes={children:e.node,className:e.string,layout:e.oneOf(Object.values(Ie.layout)),spacing:e.bool};var Me=[\"children\",\"className\",\"external\",\"history\",\"link\",\"linkTarget\",\"onClick\"];function Pe(e){var t=e.children,a=e.className,i=e.external,r=e.history,o=e.link,l=e.linkTarget,c=void 0===l?\"_blank\":l,m=e.onClick,d=_(e,Me);return n.createElement(\"div\",L({},d,{className:s(a,\"cursor-pointer\"),onClick:function(e){r&&o&&!i?r.push(o):\"undefined\"!=typeof window&&o&&i&&window.open(o,c),m&&m(e)},onKeyDown:Z(m),role:\"button\",tabIndex:\"0\"}),t)}function Ve(e){var t,i=e.children,r=e.language,o=void 0===r?\"none\":r,c=s(((t={})[\"language-\"+o]=o,t)),m=l();return a(function(){m.current&&m.current.querySelectorAll(\"pre code\").forEach(function(e){return te(e)})},[i,o,m]),n.createElement(\"pre\",{className:c,ref:m},n.createElement(\"code\",{className:c},i))}function He(e,n){var t,a;if(\"boolean\"==typeof n)return(t={})[\"col-\"+e]=n,t;if(\"number\"==typeof n||\"string\"==typeof n)return(a={})[\"col-\"+e+\"-\"+n]=!0,a;if(\"object\"==typeof n&&n){var i,r=n.size,o=n.order,l=n.offset;return(i={})[\"col-\"+e]=void 0===r,i[\"col-\"+e+\"-\"+r]=void 0!==r,i[\"order-\"+e+\"-\"+o]=void 0!==o,i[\"offset-\"+e+\"-\"+l]=void 0!==l,i}return null}function Ae(e){var t,a=e.children,i=e.className,r=e.gutters,o=e.sm,l=e.md,c=e.lg,m=e.xl;return n.createElement(\"div\",{className:s({col:!(o||l||c||m)},He(\"sm\",o),He(\"md\",l),He(\"lg\",c),He(\"xl\",m),(t={},t[\"gutters-\"+r]=r,t),i)},a)}Pe.propTypes={children:e.node,className:e.string,external:e.bool,history:e.shape({push:e.func.isRequired}),link:e.string,linkTarget:e.string,onClick:e.func},Ve.propTypes={children:e.node,language:e.string.isRequired};var Be=e.oneOfType([e.bool,e.number,e.string,e.shape({offset:e.oneOfType([e.number,e.string]),order:e.oneOfType([e.number,e.string]),size:e.oneOfType([e.number,e.string])})]);Ae.propTypes={children:e.node,className:e.string,gutters:e.oneOf([\"sm\",\"md\",\"lg\",\"none\"]),sm:Be,md:Be,lg:Be,xl:Be};var qe=n.forwardRef(function(e,t){var a=e.onSubmit,i=void 0===a?function(){}:a;return n.createElement(\"form\",{className:s(\"contact-form\",e.className),onSubmit:i,ref:t},n.createElement(\"input\",{\"aria-label\":\"Name\",id:\"contactName\",name:\"name\",placeholder:\"Name\",required:!0,type:\"text\"}),n.createElement(\"input\",{\"aria-label\":\"Email\",id:\"contactEmail\",name:\"email\",placeholder:\"Email\",required:!0,type:\"email\"}),n.createElement(\"textarea\",{\"aria-label\":\"Message\",id:\"contactMessage\",name:\"message\",placeholder:\"Message\",required:!0}),n.createElement(\"input\",{\"aria-label\":\"Send\",id:\"contactSubmit\",type:\"submit\",value:\"Send\"}))});function Re(e){var t,a=e.children,i=e.className,r=e.fluid;return n.createElement(\"div\",{className:s({container:!r},(t={},t[\"container-\"+r]=r&&\"string\"==typeof r,t),{\"container-fluid\":r&&\"boolean\"==typeof r},i)},a)}function Fe(e){var t=e.buttonText,a=void 0===t?\"Agree\":t,i=e.className,r=e.learnMoreLink,o=void 0===r?\"https://www.cookiesandyou.com/\":r,l=e.onConsent,c=void 0===l?function(){}:l,m=e.rootElement,u=e.theme,p=void 0===u?\"high-contrast\":u,g=d([\"cookieconsent_status\"]),h=g[1];return\"accepted\"===g[0].cookieconsent_status?null:n.createElement(ie,{rootElement:m},n.createElement(\"div\",{className:s(\"cookie-consent\",i),\"data-theme\":p},n.createElement(\"div\",{className:\"cookie-consent__container\"},n.createElement(\"span\",{className:\"cookie-consent__text font-sm\"},n.createElement(\"span\",{className:\"margin-right-md\"},\"This website uses cookies to ensure you get the best experience on our website.\"),o&&n.createElement(S,{className:\"color-inherit\",to:o,external:!0,underlined:!0},\"Learn more\")),n.createElement(Se,{className:\"cookie-consent__button\",color:Se.color.default,shape:Se.shape.square,size:Se.size.medium,onClick:function(){h(\"cookieconsent_status\",\"accepted\",{path:\"/\"}),c(!0)}},a))))}function We(e){var t=e.loading,a=e.size;return n.createElement(\"div\",{\"aria-hidden\":!0,className:s(\"loading-spinner\",{loading:void 0===t||t},void 0===a?\"medium\":a,e.className)},n.createElement(\"div\",{className:\"loading-spinner__animation\"},n.createElement(\"div\",null),n.createElement(\"div\",null),n.createElement(\"div\",null),n.createElement(\"div\",null)))}qe.displayName=\"ContactForm\",qe.propTypes={className:e.string,onSubmit:e.func},Re.propTypes={children:e.node,className:e.string,fluid:e.oneOfType([e.bool,e.oneOf([\"sm\",\"md\",\"lg\",\"xl\",\"fluid\"])])},Fe.propTypes={buttonText:e.string,className:e.string,learnMoreLink:e.string,onAgree:e.func,rootElement:e.string,theme:e.string},We.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),We.propTypes={className:e.string,loading:e.bool,size:e.oneOf(Object.values(We.size))};var De=Object.freeze({xs:{width:320,height:180},extraSmall:{width:320,height:180},sm:{width:480,height:270},small:{width:480,height:270},md:{width:640,height:360},medium:{width:640,height:360},lg:{width:960,height:540},large:{width:960,height:540},xl:{width:1280,height:720},extraLarge:{width:1280,height:720}});function Ze(e){return null==e||\"string\"==typeof e&&(e.endsWith(\"%\")||e.endsWith(\"px\"))?e:e+\"px\"}function Ye(e){var t=e.allowFullScreen,a=void 0===t||t,i=e.className,r=e.frameBorder,o=void 0===r?\"0\":r,c=e.height,m=e.id,d=void 0===m?\"video-player\":m,u=e.scrolling,p=void 0===u?\"no\":u,g=e.size,h=e.src,f=e.title,v=void 0===f?\"Video Player\":f,y=e.width,b=l(),E=he(b),w=\"undefined\"!=typeof navigator&&!navigator.onLine,N=y||g&&De[g].width,k=c||g&&De[g].height;return n.createElement(\"div\",{className:s(\"embedded-video\",{loading:E},g,i),style:{width:Ze(N),height:Ze(k)}},n.createElement(\"div\",{className:s(\"embedded-video__wrapper\",\"transition\",\"fade-in\",{visible:!E})},n.createElement(\"iframe\",{allowFullScreen:a,frameBorder:o,height:k||\"100%\",id:d,ref:b,scrolling:p,src:h,title:v,width:N||\"100%\"})),E&&!w&&n.createElement(We,null))}Ye.size=De,Ye.propTypes={allowFullScreen:e.bool,className:e.string,frameBorder:e.string,height:e.oneOfType([e.string,e.number]),id:e.string,scrolling:e.string,size:e.oneOf(Object.keys(Ye.size)),src:e.string.isRequired,title:e.string,width:e.oneOfType([e.string,e.number])};var Ue=[\"channel\",\"className\",\"id\",\"muted\",\"secure\",\"title\"];function Ge(e){var t=e.channel,a=void 0===t?\"zigurous\":t,i=e.className,r=e.id,o=void 0===r?\"twitch-player\":r,l=e.muted,c=void 0===l||l,m=e.secure,d=void 0===m||m,u=e.title,p=void 0===u?\"Twitch\":u,g=_(e,Ue),h=d?\"https\":\"http\",f=[\"zigurous.com\",\"www.zigurous.com\"];return\"development\"===process.env.NODE_ENV&&f.push(\"localhost\"),n.createElement(Ye,L({className:s(\"twitch\",i),id:o,src:h+\"://player.twitch.tv/?channel=\"+a+\"&parent=\"+f.join(\"&parent=\")+\"&muted=\"+c,title:p},g))}Ge.propTypes={channel:e.string.isRequired,className:e.string,id:e.string,muted:e.bool,secure:e.bool,title:e.string};var Je=[\"autoplay\",\"captions\",\"className\",\"hideBranding\",\"hideControls\",\"hideInfo\",\"hideRelated\",\"id\",\"muted\",\"origin\",\"secure\",\"startTime\",\"title\",\"videoId\"];function Ke(e){var t=e.autoplay,a=void 0!==t&&t,i=e.captions,r=void 0!==i&&i,o=e.className,l=e.hideBranding,c=void 0!==l&&l,m=e.hideControls,d=void 0!==m&&m,u=e.hideInfo,p=void 0!==u&&u,g=e.hideRelated,h=void 0===g||g,f=e.id,v=void 0===f?\"youtube-player\":f,y=e.muted,b=void 0!==y&&y,E=e.origin,w=e.secure,N=void 0===w||w,k=e.startTime,x=e.title,T=void 0===x?\"YouTube\":x,C=e.videoId,z=_(e,Je),O=\"enablejsapi=1\";O+=\"&origin=\"+E,h&&(O+=\"&rel=0\"),d&&(O+=\"&controls=0\"),p&&(O+=\"&showinfo=0\"),c&&(O+=\"&modestbranding=1\"),r&&(O+=\"&cc_load_policy=1\"),a&&(O+=\"&autoplay=1\"),b&&(O+=\"&mute=1\"),k&&(O+=\"&start=\"+k);var j=N?\"https\":\"http\";return n.createElement(Ye,L({className:s(\"youtube\",o),id:v,src:j+\"://www.youtube.com/embed/\"+C+\"?\"+O,title:T},z))}Ke.propTypes={autoplay:e.bool,captions:e.bool,className:e.string,hideBranding:e.bool,hideControls:e.bool,hideInfo:e.bool,hideRelated:e.bool,id:e.string,muted:e.bool,origin:e.string.isRequired,secure:e.bool,startTime:e.oneOf([e.number,e.string]),title:e.string,videoId:e.string.isRequired};var $e=[\"className\",\"disabled\",\"icon\",\"iconAlignment\",\"onBlur\",\"onChange\",\"onFocus\",\"placeholder\",\"size\",\"type\",\"value\"];function Qe(e){var a,i,r=e.className,o=e.disabled,l=e.icon,c=e.iconAlignment,m=void 0===c?\"right\":c,d=e.onBlur,u=void 0===d?function(){}:d,p=e.onChange,g=void 0===p?function(){}:p,h=e.onFocus,f=void 0===h?function(){}:h,v=e.placeholder,y=e.size,b=e.type,E=e.value,w=_(e,$e),N=t(!1),k=N[0],x=N[1];return n.createElement(\"div\",{className:s(\"input-wrapper\",(a={},a[\"input-wrapper--\"+y]=y,a),(i={},i[\"input-wrapper--icon-\"+m]=l&&m,i),{focus:k,disabled:o},r)},n.createElement(\"input\",L({className:\"input-wrapper__input\",disabled:o,onBlur:function(){x(!1),u()},onChange:g,onFocus:function(){x(!0),f()},placeholder:v,type:b,value:E},w)),l&&n.createElement(H,{className:\"input-wrapper__icon\",name:l,size:\"md\"}))}function Xe(e){var t=e.alt,a=e.animated,i=void 0===a||a,r=e.className,o=e.height,c=e.imageClassName,m=e.ImageElementType,d=void 0===m?\"img\":m,u=e.imageProps,p=void 0===u?{}:u,g=e.onLoad,h=void 0===g?function(){}:g,f=e.placeholder,v=e.placeholderClassName,y=e.placeholderProps,b=void 0===y?{}:y,E=e.showLoadingSpinner,w=void 0!==E&&E,N=e.src,k=e.width,x=l(),T=fe(x,h);return n.createElement(\"picture\",{className:s(\"progressive-image\",{\"progressive-image--loaded\":T},{\"progressive-image--animated\":i},{\"progressive-image--no-placeholder\":!f},r)},n.createElement(d,L({},p,{alt:p.alt||t,className:s(\"progressive-image__source\",\"img-fluid\",c,p.className),width:k||p.width,height:o||p.height,ref:x,src:N})),f&&n.createElement(d,L({},b,{alt:b.alt||t,className:s(\"progressive-image__placeholder\",\"img-fluid\",v,b.className),width:k||b.width||p.width,height:o||b.height||p.height,src:f})),w&&!T&&n.createElement(We,null))}function en(e){return\"string\"==typeof e?e:e.src}function nn(e){return e?e+\"px\":void 0}function tn(e,n,t){return\"repeat(\"+(e||\"auto-fit\")+\", minmax(\"+(nn(n)||0)+\", \"+(nn(t)||\"1fr\")+\"))\"}function an(e){var a=e.animated,i=void 0!==a&&a,r=e.animation,o=void 0===r?\"fade-in-up\":r,l=e.className,c=e.columns,m=e.fullWidthFirstItem,d=void 0!==m&&m,p=e.images,g=void 0===p?[]:p,h=e.maxWidth,f=e.minWidth,v=t(!1),y=v[0],b=v[1],E=t(0),w=E[0],N=E[1];return n.createElement(\"div\",{className:s(\"image-gallery\",l)},n.createElement(\"div\",{className:\"image-gallery__thumbnails\",style:{gridTemplateColumns:tn(c,f,h)}},g.map(function(e,t){var a,r=\"object\"==typeof e,l=r?e.src:e,c=r&&e.id||l;return n.createElement(\"button\",{\"aria-label\":\"Image Thumbnail\",className:s(\"image-gallery__thumbnail\",{\"image-gallery__thumbnail--full-width\":0===t&&d},(a={\"animation-short\":i},a[\"animation-delay-\"+(t+1)]=i,a[o]=i,a),r&&e.className),key:c,onClick:function(){N(t),b(!0)}},n.createElement(Xe,{imageProps:r?U(e,\"className\"):{},src:l}))})),y&&n.createElement(u,{enableZoom:!1,mainSrc:en(g[w]),nextSrc:en(g[(w+1)%g.length]),prevSrc:en(g[(w+g.length-1)%g.length]),onCloseRequest:function(){b(!1)},onMovePrevRequest:function(){N((w+g.length-1)%g.length)},onMoveNextRequest:function(){N((w+1)%g.length)},wrapperClassName:\"image-gallery__lightbox\"}))}function rn(e){var t,a=e.children,i=e.className,r=e.footer,o=e.footerAlignment,l=void 0===o?\"left\":o,c=e.id,m=e.onRequestClose,d=void 0===m?function(){}:m,u=e.open,p=void 0!==u&&u,g=e.rootElement,h=e.theme,f=e.title;return ye(p,!0),p?n.createElement(ie,{rootElement:g},n.createElement(\"div\",{className:s(\"modal\",{\"modal--open\":p},i),id:c,role:\"dialog\",tabIndex:\"-1\",\"data-theme\":h},n.createElement(\"div\",{className:\"modal__dialog\",role:\"document\"},n.createElement(\"div\",{className:\"modal__content\"},n.createElement(\"div\",{className:\"modal__header\"},n.createElement(\"div\",{className:\"modal__title h5\"},f),n.createElement(Se,{className:\"modal__close-button\",icon:\"only\",iconName:\"close\",onClick:d,size:Se.size.medium,style:Se.style.none})),n.createElement(\"div\",{className:\"modal__body\"},a),r&&n.createElement(\"div\",{className:s(\"modal__footer\",(t={},t[\"modal__footer--\"+l+\"-aligned\"]=l,t))},r))))):null}function on(e){var t,a=e.backgroundColor,i=e.children,r=e.className,o=e.size,l=void 0===o?\"medium\":o,c=e.style,m=e.theme,d=e.transparent,u=void 0!==d&&d;return n.createElement(\"div\",{className:s(\"page-banner\",(t={},t[\"page-banner--\"+l]=l,t),{\"page-banner--transparent\":u},r),\"data-theme\":m,style:L({backgroundColor:a},c)},i)}function ln(e){for(var t=e.className,a=e.currentPage,i=void 0===a?0:a,r=e.onPageChange,o=void 0===r?function(){}:r,l=e.totalPages,c=[],m=function(e){c.push(n.createElement(Se,{className:s({active:i===e}),key:e,onClick:function(){return o(e)},size:\"md\",style:Se.style.outline},e+1))},d=0;d=l-1,icon:\"only\",iconName:\"chevron_right\",onClick:function(){return o(i+1)},size:\"md\",style:Se.style.outline}))}function sn(e){var t,a=e.children,i=e.className,r=e.gutters;return n.createElement(\"div\",{className:s(\"row\",(t={},t[\"gutters-\"+r]=r,t),i)},a)}Qe.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),Qe.iconAlignment=Object.freeze({left:\"left\",right:\"right\"}),Qe.propTypes={className:e.string,disabled:e.bool,icon:e.string,iconAlignment:e.oneOf(Object.values(Qe.iconAlignment)),onBlur:e.func,onChange:e.func,onFocus:e.func,placeholder:e.string,size:e.oneOf(Object.values(Qe.size)),type:e.string,value:e.any},Xe.propTypes={alt:e.string,animated:e.bool,className:e.string,height:e.oneOfType([e.string,e.number]),imageClassName:e.string,ImageElementType:e.elementType,imageProps:e.object,onLoad:e.func,placeholder:e.string,placeholderClassName:e.string,placeholderProps:e.object,showLoadingSpinner:e.bool,src:e.string,width:e.oneOfType([e.string,e.number])},an.propTypes={animated:e.bool,animation:e.string,className:e.string,columns:e.number,fullWidthFirstItem:e.bool,images:e.arrayOf(e.oneOfType([e.shape({alt:e.string,className:e.string,id:e.string,src:e.string.isRequired}),e.string])),maxWidth:e.number,minWidth:e.number},rn.propTypes={children:e.node,className:e.string,footer:e.element,footerAlignment:e.oneOf([\"left\",\"right\"]),id:e.string,onRequestClose:e.func,open:e.bool,rootElement:e.string,theme:e.string,title:e.string},on.size=Object.freeze({xs:\"xs\",extraSmall:\"extraSmall\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),on.propTypes={backgroundColor:e.string,children:e.node,className:e.string,size:e.oneOf(Object.values(on.size)),style:e.object,theme:e.string,transparent:e.bool},ln.propTypes={className:e.string,currentPage:e.number,onPageChange:e.func,totalPages:e.number.isRequired},sn.propTypes={children:e.node,className:e.string,gutters:e.oneOf([\"sm\",\"md\",\"lg\",\"none\"])};var cn=[\"className\",\"debounceRate\",\"disabled\",\"onChange\",\"onSearch\",\"placeholder\"];function mn(e){var t=e.className,a=e.debounceRate,r=void 0===a?500:a,o=e.disabled,l=e.onChange,c=void 0===l?function(){}:l,m=e.onSearch,d=void 0===m?function(){}:m,u=e.placeholder,p=_(e,cn),g=i(F(function(e){return d(e)},r),[r,d]);return n.createElement(Qe,L({\"aria-label\":\"Search\",className:s(\"search-input\",t),disabled:o,icon:\"search\",iconAlignment:\"left\",onChange:function(e){var n=e.target.value;c(e),g(n)},onKeyDown:Z(function(e){return e.target.blur()}),placeholder:u||\"Search\"},p))}function dn(e){var i=e.animated,r=void 0===i||i,o=e.children,l=e.className,c=e.hideOverlay,m=void 0!==c&&c,d=e.location,u=e.rootElement,p=e.theme,g=t(!1),h=g[0],f=g[1];return ye(h,!0),a(function(){f(!1)},[d]),n.createElement(n.Fragment,null,n.createElement(\"button\",{\"aria-label\":h?\"Close\":\"Open\",className:s(\"sidedrawer__button\"),onClick:function(){return f(!h)},size:\"small\"},n.createElement(H,{name:h?\"close\":\"menu\",material:!0})),n.createElement(ie,{rootElement:u},n.createElement(\"div\",{className:s(\"sidedrawer\",{\"sidedrawer--open\":h,\"sidedrawer--closed\":!h},{\"sidedrawer--animated\":r},l),\"data-theme\":p},!m&&n.createElement(Pe,{className:\"sidedrawer__overlay\",onClick:function(){return f(!1)}}),n.createElement(\"div\",{className:\"sidedrawer__container\"},o))))}mn.propTypes={className:e.string,debounceRate:e.number,disabled:e.bool,onChange:e.func,onSearch:e.func,placeholder:e.string},dn.propTypes={animated:e.bool,className:e.string,children:e.node,hideOverlay:e.bool,location:e.object,rootElement:e.string,theme:e.string};var un=[\"children\",\"className\",\"link\",\"LinkElementType\",\"primaryColor\",\"secondaryColor\",\"size\",\"url\"];function pn(e){var t=e.children,a=e.className,i=e.link,r=e.LinkElementType,o=e.primaryColor,l=e.secondaryColor,c=e.size,m=void 0===c?Se.size.medium:c,d=e.url,u=_(e,un),p=\"string\"==typeof i?z[i]:i,g=o||p.color;return n.createElement(S,{ElementType:r,external:!0,to:d||p.url,unstyled:!0},n.createElement(Se,L({className:s(\"social-button\",p.key,a),icon:\"left\",iconElement:p.icon&&n.createElement(oe,{\"aria-hidden\":!0,ElementType:\"i\",icon:p.icon,iconName:p.key,innerPadding:0,size:\"100%\"}),size:m,styles:{\"--btn-color-primary\":g,\"--btn-color-secondary\":l,\"--btn-color-emphasis\":g},tabIndex:-1},u),t||p.name))}function gn(e){var t,a=e.alignItems,i=e.children,r=e.direction,o=void 0===r?\"column\":r,l=e.justifyContent,c=e.reversed,m=void 0!==c&&c,d=e.wrap;return n.createElement(\"div\",{className:s(\"display-flex\",{\"flex-row\":\"row\"===o&&!m,\"flex-row-reverse\":\"row\"===o&&m,\"flex-column\":\"column\"===o&&!m,\"flex-column-reverse\":\"column\"===o&&m,\"flex-wrap\":void 0!==d&&d},(t={},t[\"justify-content-\"+l]=l,t[\"align-items-\"+a]=a,t))},i)}pn.shape=Se.shape,pn.size=Se.size,pn.style=Se.style,pn.propTypes={children:e.node,className:e.string,link:C.isRequired,LinkElementType:e.elementType,primaryColor:e.string,secondaryColor:e.string,size:e.oneOf(Object.values(Se.size)),url:e.string},gn.direction=Object.freeze({row:\"row\",column:\"column\"}),gn.alignItems=Object.freeze({start:\"start\",end:\"end\",center:\"center\",stretch:\"stretch\",baseline:\"baseline\"}),gn.justifyContent=Object.freeze({start:\"start\",end:\"end\",center:\"center\",between:\"between\",around:\"around\",evenly:\"evenly\"}),gn.propTypes={alignItems:e.oneOf(Object.values(gn.alignItems)),children:e.node,direction:e.oneOf(Object.values(gn.direction)),justifyContent:e.oneOf(Object.values(gn.justifyContent)),reversed:e.bool,wrap:e.bool};var hn=e.oneOf([\"inherit\",\"transparent\",\"black\",\"white\",\"foreground\",\"foreground-muted\",\"foreground-subtle\",\"background\",\"surface-0\",\"surface-1\",\"surface-2\",\"surface-3\",\"surface-4\",\"surface-5\",\"surface-6\",\"surface-7\",\"surface-8\",\"surface-9\",\"border\",\"default\",\"primary\",\"secondary\",\"tertiary\",\"success\",\"danger\",\"warning\",\"info\"]),fn=e.oneOf([1,2,3,4,5,6,\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]),vn=e.oneOf([\"xxxl\",\"xxl\",\"xl\",\"lg\",\"md\",\"sm\",\"xs\",\"xxs\",\"xxxs\"]),yn=e.oneOf([100,200,300,400,500,600,700,800,900,\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"]),bn=e.oneOf([\"0\",\"none\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\",\"xxl\",\"xxxl\",\"2xl\",\"2xxl\",\"2xxxl\",\"1em\",\"2em\",\"3em\",\"4em\",\"5em\",\"6em\",\"7em\",\"8em\"]);function En(e){var t,a,i,r,o=e.bold,l=e.children,c=e.className,m=e.color,d=e.italic,u=e.marginBottom,p=e.marginTop,g=e.size,h=e.tag;return n.createElement(void 0===h?\"p\":h,{className:s((t={},t[\"font-\"+g]=g,t),(a={},a[\"color-\"+m]=m,a),(i={},i[\"margin-top-\"+p]=p,i),(r={},r[\"margin-bottom-\"+u]=u,r),c)},o?n.createElement(\"b\",null,d?n.createElement(\"em\",null,l):l):d?n.createElement(\"em\",null,l):l)}En.propTypes={bold:e.bool,children:e.node,className:e.string,color:hn,italic:e.bool,marginBottom:bn,marginTop:bn,size:vn,tag:e.elementType};var wn=[\"alt\",\"animated\",\"animation\",\"children\",\"className\",\"ElementType\",\"height\",\"image\",\"imageClassName\",\"ImageElementType\",\"imageProps\",\"index\",\"placeholder\",\"placeholderClassName\",\"placeholderProps\",\"rounded\",\"shadow\",\"style\",\"width\"];function Nn(e){var i,r=e.alt,o=e.animated,c=void 0!==o&&o,m=e.animation,d=void 0===m?\"fade-translate-in\":m,u=e.children,p=e.className,g=e.ElementType,h=void 0===g?\"a\":g,f=e.height,v=e.image,y=e.imageClassName,b=e.ImageElementType,E=void 0===b?\"img\":b,w=e.imageProps,N=void 0===w?{}:w,k=e.index,x=e.placeholder,T=e.placeholderClassName,C=e.placeholderProps,z=void 0===C?{}:C,O=e.rounded,j=void 0===O||O,S=e.shadow,I=void 0===S||S,M=e.width,P=_(e,wn),V=l(),H=t(!1),A=H[0],B=H[1];return a(function(){var e;return c&&A&&(e=setTimeout(function(){V&&V.current&&(V.current.style.animation=0)},600)),function(){e&&clearTimeout(e)}},[c,A,V]),n.createElement(h,L({},P,{className:s(\"thumbnail\",(i={\"animation-short\":c&&A},i[\"animation-delay-\"+(k+1)]=c&&A&&k>=0,i[d]=c&&A,i),{rounded:j,shadow:I},p),ref:V}),E&&n.createElement(Xe,{alt:r,height:f,imageClassName:y,ImageElementType:E,imageProps:N,onLoad:function(){return B(!0)},placeholder:x,placeholderClassName:T,placeholderProps:z,src:v,width:M}),u)}function kn(e){var t,a,i,r,o,l,c=e.bold,m=e.children,d=e.className,u=e.color,p=e.display,g=e.eyebrow,h=e.italic,f=e.marginBottom,v=e.marginTop,y=e.nowrap,b=e.size,E=e.subtitle,w=e.tag,N=e.weight;return n.createElement(void 0===w?\"div\":w,{className:s((t={},t[\"h\"+b]=!p&&void 0!==b,t),(a={},a[\"display-\"+b]=p&&void 0!==b,a),(i={},i[\"font-weight-\"+N]=void 0!==N,i),(r={},r[\"color-\"+u]=u,r),(o={},o[\"margin-top-\"+v]=v,o),(l={},l[\"margin-bottom-\"+f]=f,l),{\"text-nowrap\":y},{subtitle:E},{eyebrow:g},d)},c?n.createElement(\"b\",null,h?n.createElement(\"em\",null,m):m):h?n.createElement(\"em\",null,m):m)}function xn(e){return e.displayName||e.name||\"Component\"}function Tn(e,n){return e+\"(\"+xn(n)+\")\"}function Cn(e,t){void 0===t&&(t=\"smooth\");var i=function(i){return a(function(){G(t)},[]),n.createElement(e,i)};return i.displayName=Tn(\"ScrollToTop\",e),i}function zn(e){var t=function(t){return a(function(){ee()}),n.createElement(e,t)};return t.displayName=Tn(\"SyntaxHighlighting\",e),t}function On(e){var t=function(t){return xe(),n.createElement(e,t)};return t.displayName=Tn(\"ThemedFavicon\",e),t}Nn.propTypes={alt:e.string,animated:e.bool,animation:e.string,children:e.node,className:e.string,ElementType:e.elementType,height:e.oneOfType([e.string,e.number]),image:e.string,imageClassName:e.string,ImageElementType:e.elementType,imageProps:e.object,index:e.number,placeholder:e.string,placeholderClassName:e.string,placeholderProps:e.object,rounded:e.bool,shadow:e.bool,style:e.object,width:e.oneOfType([e.string,e.number])},kn.propTypes={bold:e.bool,children:e.node,className:e.string,color:hn,display:e.bool,eyebrow:e.bool,italic:e.bool,marginBottom:bn,marginTop:bn,nowrap:e.bool,size:fn,subtitle:e.bool,tag:e.elementType,weight:yn};var Ln={\"fade-in\":\"visible\",\"fade-out\":\"hidden\",\"translate-up\":\"hidden\",\"translate-down\":\"hidden\",\"translate-left\":\"hidden\",\"translate-right\":\"hidden\"};function _n(t){var a=function(e){var a=be();return n.createElement(t,L({},e,{className:s(e.className,\"transition\",\"fade-in\",{visible:a})}))};return a.displayName=Tn(\"FadeIn\",t),a.propTypes={className:e.string},a}function jn(t,a,i,r){var o=function(e){var o,l=Boolean(e[i]);return n.createElement(t,L({},e,{className:s(e.className,\"transition\",a,(o={},o[r||Ln[a]]=l,o))}))};return o.displayName=Tn(\"Transition\",t),o.propTypes={className:e.string},o}export{P as AppFooter,Ce as AppHeader,Oe as AppStoreBadge,Le as AppUtilityBar,_e as Badge,Se as Button,Ie as ButtonGroup,Pe as ClickableDiv,Ve as CodeBlock,Ae as Col,qe as ContactForm,Re as Container,Fe as CookieConsent,Ge as EmbeddedTwitch,Ye as EmbeddedVideo,Ke as EmbeddedYouTube,H as Icon,an as ImageGallery,Qe as Input,S as Link,We as LoadingSpinner,M as Logo,rn as Modal,ae as NavBar,Te as NavMenu,on as PageBanner,ln as Pagination,Xe as ProgressiveImage,ie as ReactPortal,sn as Row,mn as SearchInput,dn as SideDrawer,pn as SocialButton,oe as SocialIcon,C as SocialLinkProps,le as SocialNavLinks,gn as Stack,En as Text,Ne as ThemeContext,Nn as Thumbnail,kn as Title,W as bindEvent,ce as breakpoints,B as contrastRatio,F as debounce,Z as enterKeyHandler,_n as fadeIn,Tn as getDisplayName,J as getScrollbarWidth,xn as getWrappedDisplayName,$ as hasHorizontalScroll,K as hasVerticalScroll,q as hexToRgb,X as highlight,ee as highlightAll,ne as highlightAllUnder,te as highlightElement,T as icons,O as logo,A as luminance,U as omit,R as rgbToHex,G as scrollToTop,z as socialLinks,Q as throttle,D as unbindEvent,me as useBreakpoint,de as useBreakpointMax,ge as useDocumentTitle,fe as useLoaded,he as useLoading,ve as useLocalStorage,se as useMediaQuery,ye as useModalOverlay,be as useMounted,Ee as usePagination,we as useSearch,ue as useSizeClass,pe as useSizeClassMax,ke as useTheme,xe as useThemedFavicon,Cn as withScrollToTop,zn as withSyntaxHighlighting,On as withThemedFavicon,jn as withTransition};\n//# sourceMappingURL=index.modern.js.map\n","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(';')\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var index = pair.indexOf('=')\n\n // skip things that don't look like key=value\n if (index < 0) {\n continue;\n }\n\n var key = pair.substring(0, index).trim()\n\n // only assign once\n if (undefined == obj[key]) {\n var val = pair.substring(index + 1, pair.length).trim()\n\n // quoted values\n if (val[0] === '\"') {\n val = val.slice(1, -1)\n }\n\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n","\"use strict\";\n\nmodule.exports = Object.assign;\n//# sourceMappingURL=object-assign.js.map","import '../styles/dock.css';\nimport { Icon, Link, SocialIcon } from '@zigurous/react-components';\nimport { Link as GatsbyLink } from 'gatsby';\nimport React from 'react';\nimport { dockLinks, socialLinks } from '../links';\n\nconst Dock = ({ theme, toggleTheme, secondaryLinks }) => {\n return (\n
\n
\n
\n {dockLinks.map((link) => (\n \n ))}\n
\n
\n {socialLinks.map((link) => (\n \n ))}\n
\n
\n
\n {\n if (!document) return;\n const e = new Event('previous_slide');\n document.dispatchEvent(e);\n }}\n >\n \n \n
Previous
\n
\n
\n {\n if (!document) return;\n const e = new Event('next_slide');\n document.dispatchEvent(e);\n }}\n >\n \n \n
Next
\n
\n
\n
\n
\n \n
\n {theme === 'dark' ? 'Light Mode' : 'Dark Mode'}\n
\n
\n
\n
\n {secondaryLinks && (\n
\n {secondaryLinks.map((link) => (\n \n ))}\n
\n )}\n
\n );\n};\n\nconst DockItem = ({ link, external = false }) => {\n return (\n
\n \n {link.icon ? (\n \n ) : (\n \n )}\n \n
{link.name}
\n
\n );\n};\n\nexport default Dock;\n","import '../styles/shadow-button.css';\nimport { Button } from '@zigurous/react-components';\nimport React from 'react';\n\nconst ShadowButton = ({ children, ...rest }) => {\n return (\n \n {children}\n \n );\n};\n\nexport default ShadowButton;\n","import PropTypes from 'prop-types';\n\nexport const ImageProps = PropTypes.shape({\n sharp: PropTypes.shape({\n original: PropTypes.shape({\n src: PropTypes.string.isRequired,\n width: PropTypes.number,\n height: PropTypes.number,\n }),\n }),\n});\n","import '../styles/slide.css';\nimport { Link, ProgressiveImage } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { Link as GatsbyLink } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ShadowButton from './ShadowButton';\nimport { ImageProps } from '../types/image';\n\nconst Slide = ({ className, slide }) => {\n const offline = typeof navigator !== 'undefined' && !navigator.onLine;\n const projectPath = `/${slide.category}/${slide.id}`;\n return (\n
\n
\n \n \n \n
\n
\n
\n

{slide.date}

\n

{slide.title}

\n

\n {slide.description_short || slide.description}\n

\n \n More Details\n \n
\n
\n
\n );\n};\n\nexport const SlideProps = PropTypes.shape({\n category: PropTypes.string.isRequired,\n date: PropTypes.string,\n description: PropTypes.string,\n description_short: PropTypes.string,\n id: PropTypes.string.isRequired,\n image: ImageProps.isRequired,\n imageAltText: PropTypes.string,\n imageBorder: PropTypes.string,\n title: PropTypes.string.isRequired,\n});\n\nSlide.propTypes = {\n className: PropTypes.string,\n slide: SlideProps,\n};\n\nexport default Slide;\n","import '../styles/gallery.css';\nimport { useMediaQuery } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { navigate } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React, { useCallback, useEffect } from 'react';\nimport Slide, { SlideProps } from './Slide';\nimport { getSessionIndex, setSessionIndex } from '../utils/session';\n\nconst Gallery = ({ category, location, slides = [] }) => {\n const vertical = useMediaQuery('(max-width: 1365px)');\n\n const urlParams = new URLSearchParams(location?.search);\n const slideIndex =\n (urlParams.has('index')\n ? Number.parseInt(urlParams.get('index')) || 0\n : getSessionIndex(category)) % slides.length;\n\n const currentSlide =\n slideIndex >= 0 && slideIndex < slides.length && slides[slideIndex];\n\n const setSlideIndex = useCallback(\n (index) => {\n if (index >= slides.length) index = 0;\n if (index < 0) index = slides.length - 1;\n setSessionIndex(category, index);\n navigate(`/${category}?index=${index}`, { replace: true });\n },\n [category, slides, slideIndex]\n );\n\n useEffect(() => {\n if (!document) return;\n const prev = () => setSlideIndex(slideIndex - 1);\n const next = () => setSlideIndex(slideIndex + 1);\n document.addEventListener('previous_slide', prev);\n document.addEventListener('next_slide', next);\n return () => {\n document.removeEventListener('previous_slide', prev);\n document.removeEventListener('next_slide', next);\n };\n }, [slideIndex]);\n\n return (\n \n setSlideIndex(slideIndex - 1)}\n >\n \n \n \n \n
\n {currentSlide && }\n
\n setSlideIndex(slideIndex + 1)}\n >\n \n \n \n \n \n );\n};\n\nGallery.propTypes = {\n category: PropTypes.string,\n location: PropTypes.object,\n slides: PropTypes.arrayOf(SlideProps),\n};\n\nexport default Gallery;\n","export function getSessionIndex(category) {\n if (category && typeof sessionStorage !== 'undefined') {\n return Number.parseInt(sessionStorage.getItem(`${category}-slide`)) || 0;\n } else {\n return 0;\n }\n}\n\nexport function setSessionIndex(category, slideIndex) {\n if (category && typeof sessionStorage !== 'undefined') {\n sessionStorage.setItem(`${category}-slide`, slideIndex);\n }\n}\n","import '../styles/logo.css';\nimport { Link } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { Link as GatsbyLink } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nconst Logo = ({ rounded = false, size = 48 }) => {\n return (\n \n \n
\n \n \n \n \n \n
\n );\n};\n\nLogo.propTypes = {\n rounded: PropTypes.bool,\n};\n\nexport default Logo;\n","import '../styles/menu-gallery.css';\nimport { Button, Link, Thumbnail, useModalOverlay } from '@zigurous/react-components'; // prettier-ignore\nimport classNames from 'classnames';\nimport { Link as GatsbyLink, graphql, StaticQuery } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { headerLinks } from '../links';\n\nconst query = graphql`\n query Menu {\n games: allGamesJson {\n nodes {\n id: jsonId\n category\n title\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n art: allArtJson {\n nodes {\n id: jsonId\n category\n title\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n websites: allWebsitesJson {\n nodes {\n id: jsonId\n category\n title\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n tech: allTechJson {\n nodes {\n id: jsonId\n category\n title\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n presentations: allPresentationsJson {\n nodes {\n id: jsonId\n category\n title\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst MenuGallery = ({ open, onRequestClose = () => {} }) => {\n useModalOverlay(open, true);\n return (\n \n \n
    \n {open && (\n {\n return headerLinks.map((link) => {\n const gallery = data[link.key] || { nodes: [] };\n return (\n
  • \n \n {link.name}\n \n \n
    \n {gallery.nodes.map((item, index) => (\n \n ))}\n
    \n
  • \n );\n });\n }}\n />\n )}\n
\n \n \n );\n};\n\nMenuGallery.propTypes = {\n open: PropTypes.bool,\n onRequestClose: PropTypes.func,\n};\n\nexport default MenuGallery;\n","import '../styles/header.css';\nimport { Button, NavBar } from '@zigurous/react-components';\nimport { Link as GatsbyLink, navigate } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport Logo from './Logo';\nimport MenuGallery from './MenuGallery';\nimport { headerLinks } from '../links';\n\nconst Header = ({ location, pageTitle }) => {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n return (\n \n
\n
\n \n \n {pageTitle && (\n {\n const link = headerLinks.find(\n (link) => link.name === pageTitle\n );\n if (link) {\n navigate(link.to);\n } else {\n setIsMenuOpen(true);\n }\n }}\n style={Button.style.none}\n >\n {pageTitle}\n \n )}\n setIsMenuOpen(!isMenuOpen)}\n >\n {isMenuOpen ? (\n \n \n \n ) : (\n \n \n \n )}\n \n
\n
\n setIsMenuOpen(false)}\n />\n
\n );\n};\n\nHeader.propType = {\n location: PropTypes.object,\n pageTitle: PropTypes.string,\n};\n\nexport default Header;\n","import PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\nimport isEqual from 'react-fast-compare';\nimport React from 'react';\nimport objectAssign from 'object-assign';\n\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\n\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\n\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\n\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\n\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\n\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\n\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\n\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (encode === false) {\n return String(str);\n }\n\n return String(str).replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\n\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\n\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n\n return innermostBaseTag;\n }, []);\n};\n\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n\n var value = tag[primaryAttributeKey].toLowerCase();\n\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n\n approvedSeenTags[attributeKey] = tagUnion;\n }\n\n return approvedTags;\n }, []).reverse();\n};\n\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n\n return null;\n};\n\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\n\nvar rafPolyfill = function () {\n var clock = Date.now();\n\n return function (callback) {\n var currentTime = Date.now();\n\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\n\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\n\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;\n\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;\n\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\n\nvar _helmetCallback = null;\n\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\n\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n updateTitle(title, titleAttributes);\n\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n\n var addedTags = {};\n var removedTags = {};\n\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n\n\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n\n cb && cb();\n\n onChangeClientState(newState, addedTags, removedTags);\n};\n\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\n\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n\n if (!elementTag) {\n return;\n }\n\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\n\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\n\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\n\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\";\n};\n\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"\");\n }, \"\");\n};\n\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\n\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\n\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n\n return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = { __html: content };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n\n return React.createElement(type, mappedTag);\n });\n};\n\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\n\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)\n };\n};\n\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !isEqual(this.props, nextProps);\n };\n\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n\n return newFlattenedProps;\n };\n\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.\");\n }\n\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``} ) Refer to our API for more information.\");\n }\n }\n\n return true;\n };\n\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n\n var arrayTypeChildren = {};\n\n React.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n\n _this2.warnOnInvalidChildren(child, nestedChildren);\n\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n\n var newProps = _extends({}, props);\n\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n\n return React.createElement(Component, newProps);\n };\n\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n\n\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \" console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(React.Component), _class.propTypes = {\n base: PropTypes.object,\n bodyAttributes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n defaultTitle: PropTypes.string,\n defer: PropTypes.bool,\n encodeSpecialCharacters: PropTypes.bool,\n htmlAttributes: PropTypes.object,\n link: PropTypes.arrayOf(PropTypes.object),\n meta: PropTypes.arrayOf(PropTypes.object),\n noscript: PropTypes.arrayOf(PropTypes.object),\n onChangeClientState: PropTypes.func,\n script: PropTypes.arrayOf(PropTypes.object),\n style: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string,\n titleAttributes: PropTypes.object,\n titleTemplate: PropTypes.string\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n\n return mappedState;\n }, _temp;\n};\n\nvar NullComponent = function NullComponent() {\n return null;\n};\n\nvar HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\n\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\n\nexport default HelmetExport;\nexport { HelmetExport as Helmet };\n","import { graphql, useStaticQuery } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst query = graphql`\n query Metadata {\n site {\n metadata: siteMetadata {\n title\n description\n }\n }\n }\n`;\n\nconst Metadata = (props) => {\n const queryData = useStaticQuery(query);\n const { metadata: siteMetadata } = queryData.site;\n const metadata = { ...siteMetadata, ...props };\n return (\n \n {metadata.title}\n \n {metadata.image && }\n\n {metadata.url && }\n \n \n \n {metadata.image && }\n\n \n \n \n \n {metadata.image && }\n \n );\n};\n\nMetadata.propTypes = {\n description: PropTypes.string,\n image: PropTypes.string,\n title: PropTypes.string,\n url: PropTypes.string,\n};\n\nexport default Metadata;\n","import { useTheme } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Dock from './Dock';\nimport Header from './Header';\nimport Metadata from './Metadata';\n\nconst Page = ({\n children,\n className,\n dockLinks,\n hideDock = false,\n hideHeader = false,\n id,\n location,\n metadata,\n title,\n}) => {\n const [theme, _, toggleTheme] = useTheme('light');\n return (\n
\n \n {!hideHeader &&
}\n
\n {children}\n
\n {!hideDock && (\n \n )}\n
\n );\n};\n\nPage.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n hideDock: PropTypes.bool,\n hideHeader: PropTypes.bool,\n id: PropTypes.string,\n location: PropTypes.object,\n metadata: PropTypes.object,\n title: PropTypes.string,\n};\n\nexport default Page;\n","import '../styles/project.css';\nimport { Badge, EmbeddedYouTube, ImageGallery, Link, ProgressiveImage } from '@zigurous/react-components'; // prettier-ignore\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ImageProps } from '../types/image';\n\nconst Project = ({ className, project }) => (\n
\n
\n

{project.title}

\n
\n {project.date}\n |\n {project.role}\n
\n {project.tech && (\n
\n {project.tech.map((tech) => (\n \n {tech}\n \n ))}\n
\n )}\n
\n {project.description && (\n

{project.description}

\n )}\n {project.description_long &&\n project.description_long.map((description) => (\n

\n {description}\n

\n ))}\n
\n
\n {project.sections &&\n project.sections.map((section, index) => (\n
\n {section.title && (\n

\n {section.link ? (\n \n {section.title}\n \n ) : (\n {section.title}\n )}\n

\n )}\n {section.mainImage &&\n (section.mainImageLink ? (\n \n \n \n ) : (\n \n ))}\n {section.mainVideo && (\n \n )}\n {section.paragraphs &&\n section.paragraphs.map((paragraph, paragraphIndex) => (\n \n {paragraph}\n

\n ))}\n {section.gallery && (\n ({\n width: image.sharp.original.width,\n height: image.sharp.original.height,\n src: image.sharp.original.src,\n }))}\n minWidth={132}\n />\n )}\n {section.videos &&\n section.videos.map((video) => (\n \n ))}\n
\n ))}\n
\n);\n\nexport const ProjectProps = PropTypes.shape({\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired,\n icon: PropTypes.string.isRequired,\n })\n ),\n category: PropTypes.string.isRequired,\n date: PropTypes.string,\n description: PropTypes.string,\n description_short: PropTypes.string,\n description_long: PropTypes.arrayOf(PropTypes.string),\n id: PropTypes.string.isRequired,\n image: ImageProps.isRequired,\n role: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n link: PropTypes.string,\n mainImage: ImageProps,\n mainImageLink: PropTypes.string,\n mainVideo: PropTypes.string,\n paragraphs: PropTypes.arrayOf(PropTypes.string),\n gallery: PropTypes.arrayOf(ImageProps),\n videos: PropTypes.arrayOf(PropTypes.string),\n })\n ),\n tech: PropTypes.arrayOf(PropTypes.string),\n title: PropTypes.string.isRequired,\n});\n\nProject.propTypes = {\n className: PropTypes.string,\n project: ProjectProps,\n};\n\nexport default Project;\n","export const baseUri = 'https://adamgraham.github.io';\nexport const email = 'mailto:adam@zigurous.com';\nexport const resume = 'https://docs.google.com/document/d/1qLHBV7Ry11O-pd0XC3HvALBIKJ8YDBmSafP0Z5c4dww/edit?usp=drive_link'; // prettier-ignore\nexport const github = 'https://github.com/adamgraham';\nexport const linkedIn = 'https://www.linkedin.com/in/adamzigurous';\nexport const instagram = 'http://instagram.com/adam.zigurous';\nexport const twitter = 'https://twitter.com/zigurous';\n\nexport const headerLinks = [\n {\n key: 'games',\n name: 'Games',\n to: '/games',\n },\n {\n key: 'websites',\n name: 'Websites',\n to: '/websites',\n },\n {\n key: 'art',\n name: 'Interactive Art',\n to: '/art',\n },\n {\n key: 'tech',\n name: 'Tech Showcases',\n to: '/tech',\n },\n {\n key: 'presentations',\n name: 'Presentations',\n to: '/presentations',\n },\n];\n\nexport const dockLinks = [\n {\n key: 'home',\n name: 'Home',\n icon: 'home',\n to: '/',\n },\n {\n key: 'gallery',\n name: 'Gallery',\n icon: 'collections',\n to: '/games',\n },\n {\n key: 'projects',\n name: 'Projects',\n icon: 'menu',\n to: '/projects',\n },\n];\n\nexport const socialLinks = [\n {\n key: 'github',\n name: 'GitHub',\n url: github,\n },\n {\n key: 'linkedIn',\n name: 'LinkedIn',\n url: linkedIn,\n },\n {\n key: 'resume',\n name: 'Resume',\n icon: 'description',\n url: resume,\n },\n {\n key: 'email',\n name: 'Email',\n icon: 'mail',\n url: email,\n },\n];\n","Prism.languages.clike = {\n\t'comment': [\n\t\t{\n\t\t\tpattern: /(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\:])\\/\\/.*/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true\n\t\t}\n\t],\n\t'string': {\n\t\tpattern: /([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t\tgreedy: true\n\t},\n\t'class-name': {\n\t\tpattern: /(\\b(?:class|extends|implements|instanceof|interface|new|trait)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\t'punctuation': /[.\\\\]/\n\t\t}\n\t},\n\t'keyword': /\\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\\b/,\n\t'boolean': /\\b(?:false|true)\\b/,\n\t'function': /\\b\\w+(?=\\()/,\n\t'number': /\\b0x[\\da-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,\n\t'operator': /[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,\n\t'punctuation': /[{}[\\];(),.:]/\n};\n","(function (Prism) {\n\n\t/**\n\t * Replaces all placeholders \"<>\" of given pattern with the n-th replacement (zero based).\n\t *\n\t * Note: This is a simple text based replacement. Be careful when using backreferences!\n\t *\n\t * @param {string} pattern the given pattern.\n\t * @param {string[]} replacements a list of replacement which can be inserted into the given pattern.\n\t * @returns {string} the pattern with all placeholders replaced with their corresponding replacements.\n\t * @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source\n\t */\n\tfunction replace(pattern, replacements) {\n\t\treturn pattern.replace(/<<(\\d+)>>/g, function (m, index) {\n\t\t\treturn '(?:' + replacements[+index] + ')';\n\t\t});\n\t}\n\t/**\n\t * @param {string} pattern\n\t * @param {string[]} replacements\n\t * @param {string} [flags]\n\t * @returns {RegExp}\n\t */\n\tfunction re(pattern, replacements, flags) {\n\t\treturn RegExp(replace(pattern, replacements), flags || '');\n\t}\n\n\t/**\n\t * Creates a nested pattern where all occurrences of the string `<>` are replaced with the pattern itself.\n\t *\n\t * @param {string} pattern\n\t * @param {number} depthLog2\n\t * @returns {string}\n\t */\n\tfunction nested(pattern, depthLog2) {\n\t\tfor (var i = 0; i < depthLog2; i++) {\n\t\t\tpattern = pattern.replace(/<>/g, function () { return '(?:' + pattern + ')'; });\n\t\t}\n\t\treturn pattern.replace(/<>/g, '[^\\\\s\\\\S]');\n\t}\n\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/\n\tvar keywordKinds = {\n\t\t// keywords which represent a return or variable type\n\t\ttype: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',\n\t\t// keywords which are used to declare a type\n\t\ttypeDeclaration: 'class enum interface record struct',\n\t\t// contextual keywords\n\t\t// (\"var\" and \"dynamic\" are missing because they are used like types)\n\t\tcontextual: 'add alias and ascending async await by descending from(?=\\\\s*(?:\\\\w|$)) get global group into init(?=\\\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\\\s*{)',\n\t\t// all other keywords\n\t\tother: 'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield'\n\t};\n\n\t// keywords\n\tfunction keywordsToPattern(words) {\n\t\treturn '\\\\b(?:' + words.trim().replace(/ /g, '|') + ')\\\\b';\n\t}\n\tvar typeDeclarationKeywords = keywordsToPattern(keywordKinds.typeDeclaration);\n\tvar keywords = RegExp(keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other));\n\tvar nonTypeKeywords = keywordsToPattern(keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other);\n\tvar nonContextualKeywords = keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.other);\n\n\t// types\n\tvar generic = nested(/<(?:[^<>;=+\\-*/%&|^]|<>)*>/.source, 2); // the idea behind the other forbidden characters is to prevent false positives. Same for tupleElement.\n\tvar nestedRound = nested(/\\((?:[^()]|<>)*\\)/.source, 2);\n\tvar name = /@?\\b[A-Za-z_]\\w*\\b/.source;\n\tvar genericName = replace(/<<0>>(?:\\s*<<1>>)?/.source, [name, generic]);\n\tvar identifier = replace(/(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*/.source, [nonTypeKeywords, genericName]);\n\tvar array = /\\[\\s*(?:,\\s*)*\\]/.source;\n\tvar typeExpressionWithoutTuple = replace(/<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?/.source, [identifier, array]);\n\tvar tupleElement = replace(/[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [generic, nestedRound, array]);\n\tvar tuple = replace(/\\(<<0>>+(?:,<<0>>+)+\\)/.source, [tupleElement]);\n\tvar typeExpression = replace(/(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?/.source, [tuple, identifier, array]);\n\n\tvar typeInside = {\n\t\t'keyword': keywords,\n\t\t'punctuation': /[<>()?,.:[\\]]/\n\t};\n\n\t// strings & characters\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#character-literals\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#string-literals\n\tvar character = /'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'/.source; // simplified pattern\n\tvar regularString = /\"(?:\\\\.|[^\\\\\"\\r\\n])*\"/.source;\n\tvar verbatimString = /@\"(?:\"\"|\\\\[\\s\\S]|[^\\\\\"])*\"(?!\")/.source;\n\n\n\tPrism.languages.csharp = Prism.languages.extend('clike', {\n\t\t'string': [\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^$\\\\])<<0>>/.source, [verbatimString]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^@$\\\\])<<0>>/.source, [regularString]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true\n\t\t\t}\n\t\t],\n\t\t'class-name': [\n\t\t\t{\n\t\t\t\t// Using static\n\t\t\t\t// using static System.Math;\n\t\t\t\tpattern: re(/(\\busing\\s+static\\s+)<<0>>(?=\\s*;)/.source, [identifier]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Using alias (type)\n\t\t\t\t// using Project = PC.MyCompany.Project;\n\t\t\t\tpattern: re(/(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)/.source, [name, typeExpression]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Using alias (alias)\n\t\t\t\t// using Project = PC.MyCompany.Project;\n\t\t\t\tpattern: re(/(\\busing\\s+)<<0>>(?=\\s*=)/.source, [name]),\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Type declarations\n\t\t\t\t// class Foo\n\t\t\t\t// interface Foo\n\t\t\t\tpattern: re(/(\\b<<0>>\\s+)<<1>>/.source, [typeDeclarationKeywords, genericName]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Single catch exception declaration\n\t\t\t\t// catch(Foo)\n\t\t\t\t// (things like catch(Foo e) is covered by variable declaration)\n\t\t\t\tpattern: re(/(\\bcatch\\s*\\(\\s*)<<0>>/.source, [identifier]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Name of the type parameter of generic constraints\n\t\t\t\t// where Foo : class\n\t\t\t\tpattern: re(/(\\bwhere\\s+)<<0>>/.source, [name]),\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Casts and checks via as and is.\n\t\t\t\t// as Foo, is Bar\n\t\t\t\t// (things like if(a is Foo b) is covered by variable declaration)\n\t\t\t\tpattern: re(/(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>/.source, [typeExpressionWithoutTuple]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Variable, field and parameter declaration\n\t\t\t\t// (Foo bar, Bar baz, Foo[,,] bay, Foo> bax)\n\t\t\t\tpattern: re(/\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))/.source, [typeExpression, nonContextualKeywords, name]),\n\t\t\t\tinside: typeInside\n\t\t\t}\n\t\t],\n\t\t'keyword': keywords,\n\t\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals\n\t\t'number': /(?:\\b0(?:x[\\da-f_]*[\\da-f]|b[01_]*[01])|(?:\\B\\.\\d+(?:_+\\d+)*|\\b\\d+(?:_+\\d+)*(?:\\.\\d+(?:_+\\d+)*)?)(?:e[-+]?\\d+(?:_+\\d+)*)?)(?:[dflmu]|lu|ul)?\\b/i,\n\t\t'operator': />>=?|<<=?|[-=]>|([-+&|])\\1|~|\\?\\?=?|[-+*/%&|^!=<>]=?/,\n\t\t'punctuation': /\\?\\.?|::|[{}[\\];(),.:]/\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'number', {\n\t\t'range': {\n\t\t\tpattern: /\\.\\./,\n\t\t\talias: 'operator'\n\t\t}\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'punctuation', {\n\t\t'named-parameter': {\n\t\t\tpattern: re(/([(,]\\s*)<<0>>(?=\\s*:)/.source, [name]),\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t}\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'class-name', {\n\t\t'namespace': {\n\t\t\t// namespace Foo.Bar {}\n\t\t\t// using Foo.Bar;\n\t\t\tpattern: re(/(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])/.source, [name]),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /\\./\n\t\t\t}\n\t\t},\n\t\t'type-expression': {\n\t\t\t// default(Foo), typeof(Foo), sizeof(int)\n\t\t\tpattern: re(/(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))/.source, [nestedRound]),\n\t\t\tlookbehind: true,\n\t\t\talias: 'class-name',\n\t\t\tinside: typeInside\n\t\t},\n\t\t'return-type': {\n\t\t\t// Foo ForBar(); Foo IFoo.Bar() => 0\n\t\t\t// int this[int index] => 0; T IReadOnlyList.this[int index] => this[index];\n\t\t\t// int Foo => 0; int Foo { get; set } = 0;\n\t\t\tpattern: re(/<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))/.source, [typeExpression, identifier]),\n\t\t\tinside: typeInside,\n\t\t\talias: 'class-name'\n\t\t},\n\t\t'constructor-invocation': {\n\t\t\t// new List> { }\n\t\t\tpattern: re(/(\\bnew\\s+)<<0>>(?=\\s*[[({])/.source, [typeExpression]),\n\t\t\tlookbehind: true,\n\t\t\tinside: typeInside,\n\t\t\talias: 'class-name'\n\t\t},\n\t\t/*'explicit-implementation': {\n\t\t\t// int IFoo.Bar => 0; void IFoo>.Foo();\n\t\t\tpattern: replace(/\\b<<0>>(?=\\.<<1>>)/, className, methodOrPropertyDeclaration),\n\t\t\tinside: classNameInside,\n\t\t\talias: 'class-name'\n\t\t},*/\n\t\t'generic-method': {\n\t\t\t// foo()\n\t\t\tpattern: re(/<<0>>\\s*<<1>>(?=\\s*\\()/.source, [name, generic]),\n\t\t\tinside: {\n\t\t\t\t'function': re(/^<<0>>/.source, [name]),\n\t\t\t\t'generic': {\n\t\t\t\t\tpattern: RegExp(generic),\n\t\t\t\t\talias: 'class-name',\n\t\t\t\t\tinside: typeInside\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'type-list': {\n\t\t\t// The list of types inherited or of generic constraints\n\t\t\t// class Foo : Bar, IList\n\t\t\t// where F : Bar, IList\n\t\t\tpattern: re(\n\t\t\t\t/\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))/.source,\n\t\t\t\t[typeDeclarationKeywords, genericName, name, typeExpression, keywords.source, nestedRound, /\\bnew\\s*\\(\\s*\\)/.source]\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'record-arguments': {\n\t\t\t\t\tpattern: re(/(^(?!new\\s*\\()<<0>>\\s*)<<1>>/.source, [genericName, nestedRound]),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tgreedy: true,\n\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t},\n\t\t\t\t'keyword': keywords,\n\t\t\t\t'class-name': {\n\t\t\t\t\tpattern: RegExp(typeExpression),\n\t\t\t\t\tgreedy: true,\n\t\t\t\t\tinside: typeInside\n\t\t\t\t},\n\t\t\t\t'punctuation': /[,()]/\n\t\t\t}\n\t\t},\n\t\t'preprocessor': {\n\t\t\tpattern: /(^[\\t ]*)#.*/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'property',\n\t\t\tinside: {\n\t\t\t\t// highlight preprocessor directives as keywords\n\t\t\t\t'directive': {\n\t\t\t\t\tpattern: /(#)\\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\\b/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\talias: 'keyword'\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t// attributes\n\tvar regularStringOrCharacter = regularString + '|' + character;\n\tvar regularStringCharacterOrComment = replace(/\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>/.source, [regularStringOrCharacter]);\n\tvar roundExpression = nested(replace(/[^\"'/()]|<<0>>|\\(<>*\\)/.source, [regularStringCharacterOrComment]), 2);\n\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets\n\tvar attrTarget = /\\b(?:assembly|event|field|method|module|param|property|return|type)\\b/.source;\n\tvar attr = replace(/<<0>>(?:\\s*\\(<<1>>*\\))?/.source, [identifier, roundExpression]);\n\n\tPrism.languages.insertBefore('csharp', 'class-name', {\n\t\t'attribute': {\n\t\t\t// Attributes\n\t\t\t// [Foo], [Foo(1), Bar(2, Prop = \"foo\")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]\n\t\t\tpattern: re(/((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])/.source, [attrTarget, attr]),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'target': {\n\t\t\t\t\tpattern: re(/^<<0>>(?=\\s*:)/.source, [attrTarget]),\n\t\t\t\t\talias: 'keyword'\n\t\t\t\t},\n\t\t\t\t'attribute-arguments': {\n\t\t\t\t\tpattern: re(/\\(<<0>>*\\)/.source, [roundExpression]),\n\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t},\n\t\t\t\t'class-name': {\n\t\t\t\t\tpattern: RegExp(identifier),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\./\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'punctuation': /[:,]/\n\t\t\t}\n\t\t}\n\t});\n\n\n\t// string interpolation\n\tvar formatString = /:[^}\\r\\n]+/.source;\n\t// multi line\n\tvar mInterpolationRound = nested(replace(/[^\"'/()]|<<0>>|\\(<>*\\)/.source, [regularStringCharacterOrComment]), 2);\n\tvar mInterpolation = replace(/\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}/.source, [mInterpolationRound, formatString]);\n\t// single line\n\tvar sInterpolationRound = nested(replace(/[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<>*\\)/.source, [regularStringOrCharacter]), 2);\n\tvar sInterpolation = replace(/\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}/.source, [sInterpolationRound, formatString]);\n\n\tfunction createInterpolationInside(interpolation, interpolationRound) {\n\t\treturn {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: re(/((?:^|[^{])(?:\\{\\{)*)<<0>>/.source, [interpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'format-string': {\n\t\t\t\t\t\tpattern: re(/(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)/.source, [interpolationRound, formatString]),\n\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\tinside: {\n\t\t\t\t\t\t\t'punctuation': /^:/\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /^\\{|\\}$/,\n\t\t\t\t\t'expression': {\n\t\t\t\t\t\tpattern: /[\\s\\S]+/,\n\t\t\t\t\t\talias: 'language-csharp',\n\t\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t};\n\t}\n\n\tPrism.languages.insertBefore('csharp', 'string', {\n\t\t'interpolation-string': [\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"/.source, [mInterpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: createInterpolationInside(mInterpolation, mInterpolationRound),\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"/.source, [sInterpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: createInterpolationInside(sInterpolation, sInterpolationRound),\n\t\t\t}\n\t\t],\n\t\t'char': {\n\t\t\tpattern: RegExp(character),\n\t\t\tgreedy: true\n\t\t}\n\t});\n\n\tPrism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;\n\n}(Prism));\n","(function (Prism) {\n\n\tvar string = /(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|'(?:\\\\(?:\\r\\n|[\\s\\S])|[^'\\\\\\r\\n])*')/;\n\n\tPrism.languages.css = {\n\t\t'comment': /\\/\\*[\\s\\S]*?\\*\\//,\n\t\t'atrule': {\n\t\t\tpattern: RegExp('@[\\\\w-](?:' + /[^;{\\s\"']|\\s+(?!\\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\\s*\\{))/.source),\n\t\t\tinside: {\n\t\t\t\t'rule': /^@[\\w-]+/,\n\t\t\t\t'selector-function-argument': {\n\t\t\t\t\tpattern: /(\\bselector\\s*\\(\\s*(?![\\s)]))(?:[^()\\s]|\\s+(?![\\s)])|\\((?:[^()]|\\([^()]*\\))*\\))+(?=\\s*\\))/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\talias: 'selector'\n\t\t\t\t},\n\t\t\t\t'keyword': {\n\t\t\t\t\tpattern: /(^|[^\\w-])(?:and|not|only|or)(?![\\w-])/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t\t// See rest below\n\t\t\t}\n\t\t},\n\t\t'url': {\n\t\t\t// https://drafts.csswg.org/css-values-3/#urls\n\t\t\tpattern: RegExp('\\\\burl\\\\((?:' + string.source + '|' + /(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*/.source + ')\\\\)', 'i'),\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'function': /^url/i,\n\t\t\t\t'punctuation': /^\\(|\\)$/,\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: RegExp('^' + string.source + '$'),\n\t\t\t\t\talias: 'url'\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'selector': {\n\t\t\tpattern: RegExp('(^|[{}\\\\s])[^{}\\\\s](?:[^{};\"\\'\\\\s]|\\\\s+(?![\\\\s{])|' + string.source + ')*(?=\\\\s*\\\\{)'),\n\t\t\tlookbehind: true\n\t\t},\n\t\t'string': {\n\t\t\tpattern: string,\n\t\t\tgreedy: true\n\t\t},\n\t\t'property': {\n\t\t\tpattern: /(^|[^-\\w\\xA0-\\uFFFF])(?!\\s)[-_a-z\\xA0-\\uFFFF](?:(?!\\s)[-\\w\\xA0-\\uFFFF])*(?=\\s*:)/i,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'important': /!important\\b/i,\n\t\t'function': {\n\t\t\tpattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\\()/i,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'punctuation': /[(){};:,]/\n\t};\n\n\tPrism.languages.css['atrule'].inside.rest = Prism.languages.css;\n\n\tvar markup = Prism.languages.markup;\n\tif (markup) {\n\t\tmarkup.tag.addInlined('style', 'css');\n\t\tmarkup.tag.addAttribute('style', 'css');\n\t}\n\n}(Prism));\n","Prism.languages.javascript = Prism.languages.extend('clike', {\n\t'class-name': [\n\t\tPrism.languages.clike['class-name'],\n\t\t{\n\t\t\tpattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$A-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\.(?:constructor|prototype))/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'keyword': [\n\t\t{\n\t\t\tpattern: /((?:^|\\})\\s*)catch\\b/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^.]|\\.\\.\\.\\s*)\\b(?:as|assert(?=\\s*\\{)|async(?=\\s*(?:function\\b|\\(|[$\\w\\xA0-\\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\\s*(?:\\{|$))|for|from(?=\\s*(?:['\"]|$))|function|(?:get|set)(?=\\s*(?:[#\\[$\\w\\xA0-\\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\\b/,\n\t\t\tlookbehind: true\n\t\t},\n\t],\n\t// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)\n\t'function': /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*(?:\\.\\s*(?:apply|bind|call)\\s*)?\\()/,\n\t'number': {\n\t\tpattern: RegExp(\n\t\t\t/(^|[^\\w$])/.source +\n\t\t\t'(?:' +\n\t\t\t(\n\t\t\t\t// constant\n\t\t\t\t/NaN|Infinity/.source +\n\t\t\t\t'|' +\n\t\t\t\t// binary integer\n\t\t\t\t/0[bB][01]+(?:_[01]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// octal integer\n\t\t\t\t/0[oO][0-7]+(?:_[0-7]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// hexadecimal integer\n\t\t\t\t/0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// decimal bigint\n\t\t\t\t/\\d+(?:_\\d+)*n/.source +\n\t\t\t\t'|' +\n\t\t\t\t// decimal number (integer or float) but no bigint\n\t\t\t\t/(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?/.source\n\t\t\t) +\n\t\t\t')' +\n\t\t\t/(?![\\w$])/.source\n\t\t),\n\t\tlookbehind: true\n\t},\n\t'operator': /--|\\+\\+|\\*\\*=?|=>|&&=?|\\|\\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\\.{3}|\\?\\?=?|\\?\\.?|[~:]/\n});\n\nPrism.languages.javascript['class-name'][0].pattern = /(\\b(?:class|extends|implements|instanceof|interface|new)\\s+)[\\w.\\\\]+/;\n\nPrism.languages.insertBefore('javascript', 'keyword', {\n\t'regex': {\n\t\tpattern: RegExp(\n\t\t\t// lookbehind\n\t\t\t// eslint-disable-next-line regexp/no-dupe-characters-character-class\n\t\t\t/((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/.source +\n\t\t\t// Regex pattern:\n\t\t\t// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character\n\t\t\t// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible\n\t\t\t// with the only syntax, so we have to define 2 different regex patterns.\n\t\t\t/\\//.source +\n\t\t\t'(?:' +\n\t\t\t/(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}/.source +\n\t\t\t'|' +\n\t\t\t// `v` flag syntax. This supports 3 levels of nested character classes.\n\t\t\t/(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source +\n\t\t\t')' +\n\t\t\t// lookahead\n\t\t\t/(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))/.source\n\t\t),\n\t\tlookbehind: true,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'regex-source': {\n\t\t\t\tpattern: /^(\\/)[\\s\\S]+(?=\\/[a-z]*$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'language-regex',\n\t\t\t\tinside: Prism.languages.regex\n\t\t\t},\n\t\t\t'regex-delimiter': /^\\/|\\/$/,\n\t\t\t'regex-flags': /^[a-z]+$/,\n\t\t}\n\t},\n\t// This must be declared before keyword because we use \"function\" inside the look-forward\n\t'function-variable': {\n\t\tpattern: /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*[=:]\\s*(?:async\\s*)?(?:\\bfunction\\b|(?:\\((?:[^()]|\\([^()]*\\))*\\)|(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)\\s*=>))/,\n\t\talias: 'function'\n\t},\n\t'parameter': [\n\t\t{\n\t\t\tpattern: /(function(?:\\s+(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)?\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\))/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$a-z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*=>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /(\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*=>)/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /((?:\\b|\\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\\w\\xA0-\\uFFFF]))(?:(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*)\\(\\s*|\\]\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*\\{)/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t}\n\t],\n\t'constant': /\\b[A-Z](?:[A-Z_]|\\dx?)*\\b/\n});\n\nPrism.languages.insertBefore('javascript', 'string', {\n\t'hashbang': {\n\t\tpattern: /^#!.*/,\n\t\tgreedy: true,\n\t\talias: 'comment'\n\t},\n\t'template-string': {\n\t\tpattern: /`(?:\\\\[\\s\\S]|\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}|(?!\\$\\{)[^\\\\`])*`/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'template-punctuation': {\n\t\t\t\tpattern: /^`|`$/,\n\t\t\t\talias: 'string'\n\t\t\t},\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /((?:^|[^\\\\])(?:\\\\{2})*)\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation-punctuation': {\n\t\t\t\t\t\tpattern: /^\\$\\{|\\}$/,\n\t\t\t\t\t\talias: 'punctuation'\n\t\t\t\t\t},\n\t\t\t\t\trest: Prism.languages.javascript\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t}\n\t},\n\t'string-property': {\n\t\tpattern: /((?:^|[,{])[ \\t]*)([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\2)[^\\\\\\r\\n])*\\2(?=\\s*:)/m,\n\t\tlookbehind: true,\n\t\tgreedy: true,\n\t\talias: 'property'\n\t}\n});\n\nPrism.languages.insertBefore('javascript', 'operator', {\n\t'literal-property': {\n\t\tpattern: /((?:^|[,{])[ \\t]*)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*:)/m,\n\t\tlookbehind: true,\n\t\talias: 'property'\n\t},\n});\n\nif (Prism.languages.markup) {\n\tPrism.languages.markup.tag.addInlined('script', 'javascript');\n\n\t// add attribute support for all DOM events.\n\t// https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events\n\tPrism.languages.markup.tag.addAttribute(\n\t\t/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,\n\t\t'javascript'\n\t);\n}\n\nPrism.languages.js = Prism.languages.javascript;\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: //,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: //i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `
\ No newline at end of file +Adam Graham • Blackhole

Blackhole

January 2015|Solo Project
Adobe Flash
ActionScript 3.0

Blackhole is a free-form, avant-garde game that enables players to control particles in unique ways. Individuals explore their own creative design within the art piece, loosely making their own objectives and discovering new ways of controlling this "creative chaos" - a new type of game genre.

Media

GitHub
LinkedIn
Email
Dark Mode
Download
Source Code
\ No newline at end of file diff --git a/art/canvas/index.html b/art/canvas/index.html index f687a20..4ad9299 100644 --- a/art/canvas/index.html +++ b/art/canvas/index.html @@ -1,17 +1 @@ -Adam Graham • Canvas

Canvas

Canvas is a never-ending, interactive painting. Alter the direction of the brushes to influence the painting or sit back and watch. Every thirty seconds the canvas is cleared and a new set of design principles are created. Learn to let go and design with the flow.

ROLE — Solo Project
TECH — Adobe Flash, ActionScript 3.0
DATE — March 2015

Media

\ No newline at end of file +Adam Graham • Canvas

Canvas

March 2015|Solo Project
Adobe Flash
ActionScript 3.0

Canvas is a never-ending, interactive painting. Alter the direction of the brushes to influence the painting or sit back and watch. Every thirty seconds the canvas is cleared and a new set of design principles are created. Learn to let go and design with the flow.

Media

GitHub
LinkedIn
Email
Dark Mode
Download
Source Code
\ No newline at end of file diff --git a/art/hexahedroniks/index.html b/art/hexahedroniks/index.html index 4db2d8f..e45fb1d 100644 --- a/art/hexahedroniks/index.html +++ b/art/hexahedroniks/index.html @@ -1,17 +1 @@ -Adam Graham • Hexahedroniks

Hexahedroniks

Hexahedroniks is a virtual reality, puzzle-like toy inspired by Rubik cubes. Paint the cube various colors by looking around and shooting colored orbs at the many faces. Avoid turning the cube all black while enjoying the calming experience of this art piece.

ROLE — Solo Project
TECH — Unity, C#, Oculus Rift
DATE — June 2015

Media

\ No newline at end of file +Adam Graham • Hexahedroniks

Hexahedroniks

June 2015|Solo Project
Unity
C#
Oculus Rift

Hexahedroniks is a virtual reality, puzzle-like toy inspired by Rubik cubes. Paint the cube various colors by looking around and shooting colored orbs at the many faces. Avoid turning the cube all black while enjoying the calming experience of this art piece.

Media

GitHub
LinkedIn
Email
Dark Mode
Download
Source Code
\ No newline at end of file diff --git a/art/index.html b/art/index.html index 5819d73..b36521b 100644 --- a/art/index.html +++ b/art/index.html @@ -1,17 +1 @@ -Adam Graham • Art
\ No newline at end of file +Adam Graham • Interactive Art
GitHub
LinkedIn
Email
Dark Mode
\ No newline at end of file diff --git a/art/mixed/index.html b/art/mixed/index.html index d15564c..dfde485 100644 --- a/art/mixed/index.html +++ b/art/mixed/index.html @@ -1,17 +1 @@ -Adam Graham • Mixed

Mixed

Mixed is an interactive, avant-garde experiment touching on the topics of diversity, racism, and interracial relationships. Navigate around in an abstract space, mixing with different colors to create AI-controlled players. Explore the effects of cultural diversity and see how diversity is (im)balanced in the world. What impact can you leave on the world?

ROLE — Solo Project
TECH — Adobe Flash, ActionScript 3.0
DATE — February 2015

Media

\ No newline at end of file +Adam Graham • Mixed

Mixed

February 2015|Solo Project
Adobe Flash
ActionScript 3.0

Mixed is an interactive, avant-garde experiment touching on the topics of diversity, racism, and interracial relationships. Navigate around in an abstract space, mixing with different colors to create AI-controlled players. Explore the effects of cultural diversity and see how diversity is (im)balanced in the world. What impact can you leave on the world?

Media

GitHub
LinkedIn
Email
Dark Mode
Download
Source Code
\ No newline at end of file diff --git a/chunk-map.json b/chunk-map.json index 2cf095c..ea02994 100644 --- a/chunk-map.json +++ b/chunk-map.json @@ -1 +1 @@ -{"app":["/app-2d83dfe0ade936b5e76b.js"],"component---src-pages-404-js":["/component---src-pages-404-js-d1203087144cbdfbf0bc.js"],"component---src-pages-art-art-json-json-id-js":["/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js"],"component---src-pages-art-js":["/component---src-pages-art-js-8eceb86192924273236c.js"],"component---src-pages-games-games-json-json-id-js":["/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js"],"component---src-pages-games-js":["/component---src-pages-games-js-549314350f0da3e2eaad.js"],"component---src-pages-index-js":["/component---src-pages-index-js-17efe5904c6eca8eced2.js"],"component---src-pages-presentations-js":["/component---src-pages-presentations-js-066b817db280c8727477.js"],"component---src-pages-presentations-presentations-json-json-id-js":["/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js"],"component---src-pages-software-js":["/component---src-pages-software-js-2028b311d027474c008d.js"],"component---src-pages-tech-js":["/component---src-pages-tech-js-c3cee92e893b944846eb.js"],"component---src-pages-tech-tech-json-json-id-js":["/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js"],"component---src-pages-websites-js":["/component---src-pages-websites-js-fbcd51703c398382318d.js"],"component---src-pages-websites-websites-json-json-id-js":["/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js"]} \ No newline at end of file +{"app":["/app-9442da87d5728df94a7c.js"],"component---src-pages-404-js":["/component---src-pages-404-js-d1203087144cbdfbf0bc.js"],"component---src-pages-art-art-json-json-id-js":["/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js"],"component---src-pages-art-js":["/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js"],"component---src-pages-games-games-json-json-id-js":["/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js"],"component---src-pages-games-js":["/component---src-pages-games-js-dfbada6fbd2ff8012889.js"],"component---src-pages-index-js":["/component---src-pages-index-js-186dac701b65cc23788b.js"],"component---src-pages-presentations-js":["/component---src-pages-presentations-js-ef338db105d67c97982b.js"],"component---src-pages-presentations-presentations-json-json-id-js":["/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js"],"component---src-pages-projects-js":["/component---src-pages-projects-js-a15f4187e03e2bc882ac.js"],"component---src-pages-software-js":["/component---src-pages-software-js-ea75cd86f29da1c9979a.js"],"component---src-pages-tech-js":["/component---src-pages-tech-js-66907ecb2446d2b384e2.js"],"component---src-pages-tech-tech-json-json-id-js":["/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js"],"component---src-pages-websites-js":["/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js"],"component---src-pages-websites-websites-json-json-id-js":["/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js"]} \ No newline at end of file diff --git a/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map b/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map index a56c005..3dceafa 100644 --- a/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map +++ b/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-404-js-d1203087144cbdfbf0bc.js","mappings":"kKAUA,UAPqBA,MACnBC,EAAAA,EAAAA,YAAU,MACRC,EAAAA,EAAAA,UAAS,IAAI,GACZ,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/404.js"],"sourcesContent":["import { navigate } from 'gatsby';\r\nimport { useEffect } from 'react';\r\n\r\nconst NotFoundPage = () => {\r\n useEffect(() => {\r\n navigate('/');\r\n }, []);\r\n return null;\r\n};\r\n\r\nexport default NotFoundPage;\r\n"],"names":["NotFoundPage","useEffect","navigate"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-404-js-d1203087144cbdfbf0bc.js","mappings":"kKAUA,UAPqBA,MACnBC,EAAAA,EAAAA,YAAU,MACRC,EAAAA,EAAAA,UAAS,IAAI,GACZ,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/404.js"],"sourcesContent":["import { navigate } from 'gatsby';\nimport { useEffect } from 'react';\n\nconst NotFoundPage = () => {\n useEffect(() => {\n navigate('/');\n }, []);\n return null;\n};\n\nexport default NotFoundPage;\n"],"names":["NotFoundPage","useEffect","navigate"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js b/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js new file mode 100644 index 0000000..1098e48 --- /dev/null +++ b/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[156],{861:function(t,a,e){e.r(a);var r=e(6540),i=e(6690),o=e(1053);a.default=t=>{let{data:a,location:e}=t;const{project:c}=a;return r.createElement(i.YW,{title:"Interactive Art",dockLinks:c.buttons,location:e,metadata:{url:`${o.wW}/${c.category}/${c.id}`,title:`Adam Graham • ${c.title}`,description:c.description_short||c.description,image:c.image&&c.image.sharp.original.src}},r.createElement(i.MM,{project:c}))}}}]); +//# sourceMappingURL=component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js.map \ No newline at end of file diff --git a/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js.map b/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js.map new file mode 100644 index 0000000..3be7cce --- /dev/null +++ b/component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-art-art-json-json-id-js-4e8a242549dc50ff49f1.js","mappings":"2KAsFA,UAxBYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,EACpB,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,MAAM,kBACNC,UAAWJ,EAAQK,QACnBN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,MAAWR,EAAQS,YAAYT,EAAQU,KAC/CP,MAAO,iBAAiBH,EAAQG,QAChCQ,YAAaX,EAAQY,mBAAqBZ,EAAQW,YAClDE,MAAOb,EAAQa,OAASb,EAAQa,MAAMC,MAAMC,SAASC,MAGvDf,EAAAA,cAACgB,EAAAA,GAAO,CAACjB,QAASA,IACb,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art/{ArtJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Page, Project, ProjectProps } from '../../components';\nimport { baseUri } from '../../links';\n\nexport const query = graphql`\n query ($id: String!) {\n project: artJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n description\n description_short\n description_long\n date\n role\n tech\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n buttons {\n name\n url\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainImageLink\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n }\n`;\n\nconst Art = ({ data, location }) => {\n const { project } = data;\n return (\n \n \n \n );\n};\n\nArt.propTypes = {\n data: PropTypes.shape({ project: ProjectProps }),\n location: PropTypes.object,\n};\n\nexport default Art;\n"],"names":["_ref","data","location","project","React","Page","title","dockLinks","buttons","metadata","url","baseUri","category","id","description","description_short","image","sharp","original","src","Project"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js b/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js deleted file mode 100644 index 1b1988b..0000000 --- a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[156],{861:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{project:l}=e,{gallery:c}=e.json;return o.createElement(r.zr,{category:l.category,gallery:c,location:t,project:l})}}}]); -//# sourceMappingURL=component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map \ No newline at end of file diff --git a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map b/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map deleted file mode 100644 index fe0aa8b..0000000 --- a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js","mappings":"iKAyGA,UAvBYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art/{ArtJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: artJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allArtJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Art = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nArt.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Art;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js b/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js new file mode 100644 index 0000000..ee9c545 --- /dev/null +++ b/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[120],{2874:function(t,a,e){e.r(a);var r=e(6540),l=e(6690),o=e(1053);a.default=t=>{let{data:a,location:e}=t;const{slides:i}=a.json;return r.createElement(l.YW,{id:"art",title:"Interactive Art",location:e,metadata:{url:`${o.wW}/art`,title:"Adam Graham • Interactive Art"}},r.createElement(l.Z2,{category:"art",location:e,slides:i}))}}}]); +//# sourceMappingURL=component---src-pages-art-js-72f0f3bdbc61943bc2cb.js.map \ No newline at end of file diff --git a/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js.map b/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js.map new file mode 100644 index 0000000..7d2421e --- /dev/null +++ b/component---src-pages-art-js-72f0f3bdbc61943bc2cb.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-art-js-72f0f3bdbc61943bc2cb.js","mappings":"4KA0DA,UA1BYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,OAAEG,GAAWF,EAAKG,KACxB,OACEC,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,MACHC,MAAM,kBACNN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,SACRH,MAAO,kCAGTH,EAAAA,cAACO,EAAAA,GAAO,CAACC,SAAS,MAAMX,SAAUA,EAAUC,OAAQA,IAC/C,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Gallery, Page, SlideProps } from '../components';\nimport { baseUri } from '../links';\n\nexport const query = graphql`\n query Art {\n json: allArtJson {\n slides: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Art = ({ data, location }) => {\n const { slides } = data.json;\n return (\n \n \n \n );\n};\n\nArt.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n slides: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Art;\n"],"names":["_ref","data","location","slides","json","React","Page","id","title","metadata","url","baseUri","Gallery","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-js-8eceb86192924273236c.js b/component---src-pages-art-js-8eceb86192924273236c.js deleted file mode 100644 index fdc70ad..0000000 --- a/component---src-pages-art-js-8eceb86192924273236c.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[120],{2874:function(a,t,e){e.r(t);var o=e(6540),r=e(8305);t.default=a=>{let{data:t,location:e}=a;const{gallery:l}=t.json;return o.createElement(r.oY,{category:"art",gallery:l,location:e})}}}]); -//# sourceMappingURL=component---src-pages-art-js-8eceb86192924273236c.js.map \ No newline at end of file diff --git a/component---src-pages-art-js-8eceb86192924273236c.js.map b/component---src-pages-art-js-8eceb86192924273236c.js.map deleted file mode 100644 index f842de6..0000000 --- a/component---src-pages-art-js-8eceb86192924273236c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-art-js-8eceb86192924273236c.js","mappings":"kKA6CA,UAdYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,MAAMJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Art {\r\n json: allArtJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Art = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nArt.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Art;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js b/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js deleted file mode 100644 index aac9fc5..0000000 --- a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[520],{2957:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{project:l}=e,{gallery:c}=e.json;return o.createElement(r.zr,{category:l.category,gallery:c,location:t,project:l})}}}]); -//# sourceMappingURL=component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map \ No newline at end of file diff --git a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map b/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map deleted file mode 100644 index 036b083..0000000 --- a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games/{GamesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: gamesJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allGamesJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Game = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nGame.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Game;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js b/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js new file mode 100644 index 0000000..391116f --- /dev/null +++ b/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[520],{2957:function(t,a,e){e.r(a);var r=e(6540),i=e(6690),o=e(1053);a.default=t=>{let{data:a,location:e}=t;const{project:c}=a;return r.createElement(i.YW,{title:"Games",dockLinks:c.buttons,location:e,metadata:{url:`${o.wW}/${c.category}/${c.id}`,title:`Adam Graham • ${c.title}`,description:c.description_short||c.description,image:c.image&&c.image.sharp.original.src}},r.createElement(i.MM,{project:c}))}}}]); +//# sourceMappingURL=component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js.map \ No newline at end of file diff --git a/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js.map b/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js.map new file mode 100644 index 0000000..2e30b2d --- /dev/null +++ b/component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-games-games-json-json-id-js-ad38f6099c7f2a1cb117.js","mappings":"4KAsFA,UAxBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,EACpB,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,MAAM,QACNC,UAAWJ,EAAQK,QACnBN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,MAAWR,EAAQS,YAAYT,EAAQU,KAC/CP,MAAO,iBAAiBH,EAAQG,QAChCQ,YAAaX,EAAQY,mBAAqBZ,EAAQW,YAClDE,MAAOb,EAAQa,OAASb,EAAQa,MAAMC,MAAMC,SAASC,MAGvDf,EAAAA,cAACgB,EAAAA,GAAO,CAACjB,QAASA,IACb,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games/{GamesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Page, Project, ProjectProps } from '../../components';\nimport { baseUri } from '../../links';\n\nexport const query = graphql`\n query ($id: String!) {\n project: gamesJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n description\n description_short\n description_long\n date\n role\n tech\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n buttons {\n name\n url\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainImageLink\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n }\n`;\n\nconst Game = ({ data, location }) => {\n const { project } = data;\n return (\n \n \n \n );\n};\n\nGame.propTypes = {\n data: PropTypes.shape({ project: ProjectProps }),\n location: PropTypes.object,\n};\n\nexport default Game;\n"],"names":["_ref","data","location","project","React","Page","title","dockLinks","buttons","metadata","url","baseUri","category","id","description","description_short","image","sharp","original","src","Project"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-js-549314350f0da3e2eaad.js b/component---src-pages-games-js-549314350f0da3e2eaad.js deleted file mode 100644 index 1267d0a..0000000 --- a/component---src-pages-games-js-549314350f0da3e2eaad.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[830],{4492:function(a,e,o){o.r(e);var t=o(6540),l=o(8305);e.default=a=>{let{data:e,location:o}=a;const{gallery:r}=e.json;return t.createElement(l.oY,{category:"games",gallery:r,location:o})}}}]); -//# sourceMappingURL=component---src-pages-games-js-549314350f0da3e2eaad.js.map \ No newline at end of file diff --git a/component---src-pages-games-js-549314350f0da3e2eaad.js.map b/component---src-pages-games-js-549314350f0da3e2eaad.js.map deleted file mode 100644 index 7a343b5..0000000 --- a/component---src-pages-games-js-549314350f0da3e2eaad.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-games-js-549314350f0da3e2eaad.js","mappings":"kKA6CA,UAdcA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC/B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,QAAQJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Games {\r\n json: allGamesJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Games = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nGames.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Games;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-js-dfbada6fbd2ff8012889.js b/component---src-pages-games-js-dfbada6fbd2ff8012889.js new file mode 100644 index 0000000..90b50b4 --- /dev/null +++ b/component---src-pages-games-js-dfbada6fbd2ff8012889.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[830],{4492:function(a,e,t){t.r(e);var l=t(6540),o=t(6690),s=t(1053);e.default=a=>{let{data:e,location:t}=a;const{slides:m}=e.json;return l.createElement(o.YW,{id:"games",title:"Games",location:t,metadata:{url:`${s.wW}/games`,title:"Adam Graham • Games"}},l.createElement(o.Z2,{category:"games",location:t,slides:m}))}}}]); +//# sourceMappingURL=component---src-pages-games-js-dfbada6fbd2ff8012889.js.map \ No newline at end of file diff --git a/component---src-pages-games-js-dfbada6fbd2ff8012889.js.map b/component---src-pages-games-js-dfbada6fbd2ff8012889.js.map new file mode 100644 index 0000000..724321d --- /dev/null +++ b/component---src-pages-games-js-dfbada6fbd2ff8012889.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-games-js-dfbada6fbd2ff8012889.js","mappings":"4KA0DA,UA1BcA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC/B,MAAM,OAAEG,GAAWF,EAAKG,KACxB,OACEC,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,QACHC,MAAM,QACNN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,WACRH,MAAO,wBAGTH,EAAAA,cAACO,EAAAA,GAAO,CAACC,SAAS,QAAQX,SAAUA,EAAUC,OAAQA,IACjD,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Gallery, Page, SlideProps } from '../components';\nimport { baseUri } from '../links';\n\nexport const query = graphql`\n query Games {\n json: allGamesJson {\n slides: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Games = ({ data, location }) => {\n const { slides } = data.json;\n return (\n \n \n \n );\n};\n\nGames.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n slides: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Games;\n"],"names":["_ref","data","location","slides","json","React","Page","id","title","metadata","url","baseUri","Gallery","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-index-js-17efe5904c6eca8eced2.js b/component---src-pages-index-js-17efe5904c6eca8eced2.js deleted file mode 100644 index d16e138..0000000 --- a/component---src-pages-index-js-17efe5904c6eca8eced2.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[293],{9639:function(e,a,t){t.r(a);var n=t(6304),r=t(8007),s=t(6540);a.default=()=>s.createElement("main",{className:"cover","data-theme":"dark"},s.createElement("article",{className:"container-md"},s.createElement("b",{className:"h5 padding-left-sm"},"Hello, my name is"),s.createElement("h1",{className:"margin-top-sm"},"Adam Graham"),s.createElement("p",{className:"font-lg margin-bottom-1em"},"Adam is a professional software engineer and game developer with 10+ years of experience. He founded the indie game studio"," ",s.createElement(n.N_,{external:!0,to:"https://zigurous.com/"},s.createElement("b",null,"Zigurous"))," ","in 2021 and is currently working on his first major release alongside other enterprise projects. Adam's work is inspired by a passion for art, design, and engineering."),s.createElement(n.N_,{ElementType:r.Link,to:"/games",unstyled:!0},s.createElement(n.$n,{size:n.$n.size.medium},"View Gallery"))))}}]); -//# sourceMappingURL=component---src-pages-index-js-17efe5904c6eca8eced2.js.map \ No newline at end of file diff --git a/component---src-pages-index-js-17efe5904c6eca8eced2.js.map b/component---src-pages-index-js-17efe5904c6eca8eced2.js.map deleted file mode 100644 index 6ad2bce..0000000 --- a/component---src-pages-index-js-17efe5904c6eca8eced2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-index-js-17efe5904c6eca8eced2.js","mappings":"4KA4BA,UAxBaA,IAETC,EAAAA,cAAA,QAAMC,UAAU,QAAQ,aAAW,QACjCD,EAAAA,cAAA,WAASC,UAAU,gBACjBD,EAAAA,cAAA,KAAGC,UAAU,sBAAqB,qBAClCD,EAAAA,cAAA,MAAIC,UAAU,iBAAgB,eAC9BD,EAAAA,cAAA,KAAGC,UAAU,6BAA4B,6HAEe,IACtDD,EAAAA,cAACE,EAAAA,GAAI,CAACC,UAAQ,EAACC,GAAG,yBAChBJ,EAAAA,cAAA,SAAG,aACG,IAAI,2KAKdA,EAAAA,cAACE,EAAAA,GAAI,CAACG,YAAaC,EAAAA,KAAYF,GAAG,SAASG,UAAQ,GACjDP,EAAAA,cAACQ,EAAAA,GAAM,CAACC,KAAMD,EAAAA,GAAOC,KAAKC,QAAQ,kB","sources":["webpack://@adamgraham/portfolio/./src/pages/index.js"],"sourcesContent":["import { Button, Link } from '@zigurous/react-components';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport React from 'react';\r\n\r\nconst Home = () => {\r\n return (\r\n
\r\n
\r\n Hello, my name is\r\n

Adam Graham

\r\n

\r\n Adam is a professional software engineer and game developer with 10+\r\n years of experience. He founded the indie game studio{' '}\r\n \r\n Zigurous\r\n {' '}\r\n in 2021 and is currently working on his first major release alongside\r\n other enterprise projects. Adam's work is inspired by a passion for\r\n art, design, and engineering.\r\n

\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Home;\r\n"],"names":["Home","React","className","Link","external","to","ElementType","GatsbyLink","unstyled","Button","size","medium"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-index-js-186dac701b65cc23788b.js b/component---src-pages-index-js-186dac701b65cc23788b.js new file mode 100644 index 0000000..55033f1 --- /dev/null +++ b/component---src-pages-index-js-186dac701b65cc23788b.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[293],{5971:function(e,t,n){n.r(t),n.d(t,{default:function(){return d}});var a=n(3892),r=n(8007),i=n(6540),o=n(6690);function l(e){const t=()=>{var t,n,a,r;return{width:null!==(t=null===(n=e.current)||void 0===n?void 0:n.offsetWidth)&&void 0!==t?t:0,height:null!==(a=null===(r=e.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==a?a:0}},{0:n,1:a}=(0,i.useState)(t),{0:r,1:o}=(0,i.useState)(1),l=()=>{const e=t();var n,r,i;a(t()),"undefined"!=typeof window&&o((n=.8*window.innerWidth/e.width,r=1,i=1.309,Math.min(Math.max(n,r),i)))};return(0,i.useEffect)((()=>{if("undefined"!=typeof window)return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)}),[]),(0,i.useLayoutEffect)((()=>{l()}),[]),[n,r]}var s=n(1053);var d=e=>{let{location:t}=e;const n=(0,i.useRef)(),[d,c]=l(n);return i.createElement(o.YW,{id:"cover",hideDock:!0,hideHeader:!0,location:t,metadata:{url:s.wW,title:"Adam Graham • Portfolio"}},i.createElement("div",{className:"cover"},i.createElement("div",{className:"container-md introduction",ref:n,style:{transform:`scale(${c})`}},i.createElement("b",{className:"h6 padding-left-sm"},"Hello! 👋 My name is"),i.createElement("h1",{className:"margin-bottom-md",style:{fontWeight:700}},"Adam Graham"),i.createElement("p",{className:"font-sm margin-bottom-md opacity-90p"},"I'm a software engineer and game developer inspired by the blending of art, design, and engineering to create best in class user experiences. I love working on design centric projects across web and mobile having been a tech lead and UX engineer for many Fortune 500 clients over the past 10 years."),i.createElement(a.e2,null,i.createElement(a.N_,{ElementType:r.Link,to:"/games",style:{marginLeft:"-4px"},unstyled:!0},i.createElement(o.Dd,null,"Gallery")),i.createElement(a.N_,{ElementType:r.Link,to:"/projects",style:{marginLeft:"-4px"},unstyled:!0},i.createElement(o.Dd,null,"Projects"))))))}}}]); +//# sourceMappingURL=component---src-pages-index-js-186dac701b65cc23788b.js.map \ No newline at end of file diff --git a/component---src-pages-index-js-186dac701b65cc23788b.js.map b/component---src-pages-index-js-186dac701b65cc23788b.js.map new file mode 100644 index 0000000..be503fa --- /dev/null +++ b/component---src-pages-index-js-186dac701b65cc23788b.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-index-js-186dac701b65cc23788b.js","mappings":"4NAGO,SAASA,EAAeC,GAC7B,MAAMC,EAAUA,KAAO,IAADC,EAAAC,EAAAC,EAAAC,EACpB,MAAO,CACLC,MAAqC,QAAhCJ,EAAmB,QAAnBC,EAAEH,EAAUO,eAAO,IAAAJ,OAAA,EAAjBA,EAAmBK,mBAAW,IAAAN,EAAAA,EAAI,EACzCO,OAAuC,QAAjCL,EAAmB,QAAnBC,EAAEL,EAAUO,eAAO,IAAAF,OAAA,EAAjBA,EAAmBK,oBAAY,IAAAN,EAAAA,EAAI,EAC5C,GAGG,EAACO,EAAK,EAACC,IAAWC,EAAAA,EAAAA,UAASZ,IAC3B,EAACa,EAAM,EAACC,IAAYF,EAAAA,EAAAA,UAAS,GAE7BG,EAAeA,KACnB,MAAML,EAAOV,ICfV,IAAegB,EAAOC,EAAKC,EDgB9BP,EAAQX,KACc,oBAAXmB,QACTL,GClBgBE,EDkBoB,GAApBG,OAAOC,WAAoBV,EAAKL,MClBzBY,EDkBgC,EClB3BC,EDkB8B,MCjBvDG,KAAKJ,IAAII,KAAKH,IAAIF,EAAOC,GAAMC,IDkBpC,EAaF,OAVAI,EAAAA,EAAAA,YAAU,KACR,GAAsB,oBAAXH,OAEX,OADAA,OAAOI,iBAAiB,SAAUR,GAC3B,IAAMI,OAAOK,oBAAoB,SAAUT,EAAa,GAC9D,KAEHU,EAAAA,EAAAA,kBAAgB,KACdV,GAAc,GACb,IAEI,CAACL,EAAMG,EAChB,C,cE6BA,MAvDaa,IAAmB,IAAlB,SAAEC,GAAUD,EACxB,MAAME,GAAMC,EAAAA,EAAAA,WACLC,EAAGjB,GAASf,EAAe8B,GAClC,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,QACHC,UAAQ,EACRC,YAAU,EACVR,SAAUA,EACVS,SAAU,CACRC,IAAKC,EAAAA,GACLC,MAAO,4BAGTR,EAAAA,cAAA,OAAKS,UAAU,SACbT,EAAAA,cAAA,OACES,UAAU,4BACVZ,IAAKA,EACLa,MAAO,CAAEC,UAAW,SAAS7B,OAE7BkB,EAAAA,cAAA,KAAGS,UAAU,sBAAqB,wBAClCT,EAAAA,cAAA,MAAIS,UAAU,mBAAmBC,MAAO,CAAEE,WAAY,MAAO,eAG7DZ,EAAAA,cAAA,KAAGS,UAAU,wCAAuC,8SAOpDT,EAAAA,cAACa,EAAAA,GAAW,KACVb,EAAAA,cAACc,EAAAA,GAAI,CACHC,YAAaC,EAAAA,KACbC,GAAG,SACHP,MAAO,CAAEQ,WAAY,QACrBC,UAAQ,GAERnB,EAAAA,cAACoB,EAAAA,GAAY,KAAC,YAEhBpB,EAAAA,cAACc,EAAAA,GAAI,CACHC,YAAaC,EAAAA,KACbC,GAAG,YACHP,MAAO,CAAEQ,WAAY,QACrBC,UAAQ,GAERnB,EAAAA,cAACoB,EAAAA,GAAY,KAAC,gBAKjB,C","sources":["webpack://@adamgraham/portfolio/./src/hooks/useElementSize.js","webpack://@adamgraham/portfolio/./src/utils/clamp.js","webpack://@adamgraham/portfolio/./src/pages/index.js"],"sourcesContent":["import { useEffect, useLayoutEffect, useState } from 'react';\nimport { clamp } from '../utils/clamp';\n\nexport function useElementSize(targetRef) {\n const getSize = () => {\n return {\n width: targetRef.current?.offsetWidth ?? 0,\n height: targetRef.current?.offsetHeight ?? 0,\n };\n };\n\n const [size, setSize] = useState(getSize);\n const [scale, setScale] = useState(1);\n\n const handleResize = () => {\n const size = getSize();\n setSize(getSize());\n if (typeof window !== 'undefined') {\n setScale(clamp((window.innerWidth * 0.8) / size.width, 1, 1.309));\n }\n };\n\n useEffect(() => {\n if (typeof window === 'undefined') return;\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n useLayoutEffect(() => {\n handleResize();\n }, []);\n\n return [size, scale];\n}\n","export function clamp(value, min, max) {\n return Math.min(Math.max(value, min), max);\n}\n","import { ButtonGroup, Link } from '@zigurous/react-components';\nimport { Link as GatsbyLink } from 'gatsby';\nimport React, { useRef } from 'react';\nimport { Page, ShadowButton } from '../components';\nimport { useElementSize } from '../hooks/useElementSize';\nimport { baseUri } from '../links';\n\nconst Home = ({ location }) => {\n const ref = useRef();\n const [_, scale] = useElementSize(ref);\n return (\n \n
\n \n Hello! 👋 My name is\n

\n Adam Graham\n

\n

\n I'm a software engineer and game developer inspired by the blending\n of art, design, and engineering to create best in class user\n experiences. I love working on design centric projects across web\n and mobile having been a tech lead and UX engineer for many Fortune\n 500 clients over the past 10 years.\n

\n \n \n Gallery\n \n \n Projects\n \n \n
\n \n \n );\n};\n\nexport default Home;\n"],"names":["useElementSize","targetRef","getSize","_targetRef$current$of","_targetRef$current","_targetRef$current$of2","_targetRef$current2","width","current","offsetWidth","height","offsetHeight","size","setSize","useState","scale","setScale","handleResize","value","min","max","window","innerWidth","Math","useEffect","addEventListener","removeEventListener","useLayoutEffect","_ref","location","ref","useRef","_","React","Page","id","hideDock","hideHeader","metadata","url","baseUri","title","className","style","transform","fontWeight","ButtonGroup","Link","ElementType","GatsbyLink","to","marginLeft","unstyled","ShadowButton"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-js-066b817db280c8727477.js b/component---src-pages-presentations-js-066b817db280c8727477.js deleted file mode 100644 index fd23b86..0000000 --- a/component---src-pages-presentations-js-066b817db280c8727477.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[464],{2998:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{gallery:l}=e.json;return o.createElement(r.oY,{category:"presentations",gallery:l,location:t})}}}]); -//# sourceMappingURL=component---src-pages-presentations-js-066b817db280c8727477.js.map \ No newline at end of file diff --git a/component---src-pages-presentations-js-066b817db280c8727477.js.map b/component---src-pages-presentations-js-066b817db280c8727477.js.map deleted file mode 100644 index 6060d0a..0000000 --- a/component---src-pages-presentations-js-066b817db280c8727477.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-presentations-js-066b817db280c8727477.js","mappings":"kKAmDA,UApBsBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACvC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAS,gBACTJ,QAASA,EACTD,SAAUA,GACV,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Presentations {\r\n json: allPresentationsJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Presentations = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nPresentations.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Presentations;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-js-ef338db105d67c97982b.js b/component---src-pages-presentations-js-ef338db105d67c97982b.js new file mode 100644 index 0000000..0b6aa11 --- /dev/null +++ b/component---src-pages-presentations-js-ef338db105d67c97982b.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[464],{2998:function(t,e,a){a.r(e);var n=a(6540),o=a(6690),s=a(1053);e.default=t=>{let{data:e,location:a}=t;const{slides:r}=e.json;return n.createElement(o.YW,{id:"presentations",title:"Presentations",location:a,metadata:{url:`${s.wW}/presentations`,title:"Adam Graham • Presentations"}},n.createElement(o.Z2,{category:"presentations",location:a,slides:r}))}}}]); +//# sourceMappingURL=component---src-pages-presentations-js-ef338db105d67c97982b.js.map \ No newline at end of file diff --git a/component---src-pages-presentations-js-ef338db105d67c97982b.js.map b/component---src-pages-presentations-js-ef338db105d67c97982b.js.map new file mode 100644 index 0000000..c88196f --- /dev/null +++ b/component---src-pages-presentations-js-ef338db105d67c97982b.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-presentations-js-ef338db105d67c97982b.js","mappings":"4KA0DA,UA1BsBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACvC,MAAM,OAAEG,GAAWF,EAAKG,KACxB,OACEC,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,gBACHC,MAAM,gBACNN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,mBACRH,MAAO,gCAGTH,EAAAA,cAACO,EAAAA,GAAO,CAACC,SAAS,gBAAgBX,SAAUA,EAAUC,OAAQA,IACzD,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Gallery, Page, SlideProps } from '../components';\nimport { baseUri } from '../links';\n\nexport const query = graphql`\n query Presentations {\n json: allPresentationsJson {\n slides: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Presentations = ({ data, location }) => {\n const { slides } = data.json;\n return (\n \n \n \n );\n};\n\nPresentations.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n slides: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Presentations;\n"],"names":["_ref","data","location","slides","json","React","Page","id","title","metadata","url","baseUri","Gallery","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js b/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js new file mode 100644 index 0000000..57582fd --- /dev/null +++ b/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[324],{2769:function(t,a,e){e.r(a);var r=e(6540),i=e(6690),o=e(1053);a.default=t=>{let{data:a,location:e}=t;const{project:n}=a;return r.createElement(i.YW,{title:"Presentations",dockLinks:n.buttons,location:e,metadata:{url:`${o.wW}/${n.category}/${n.id}`,title:`Adam Graham • ${n.title}`,description:n.description_short||n.description,image:n.image&&n.image.sharp.original.src}},r.createElement(i.MM,{project:n}))}}}]); +//# sourceMappingURL=component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js.map \ No newline at end of file diff --git a/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js.map b/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js.map new file mode 100644 index 0000000..714406c --- /dev/null +++ b/component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-presentations-presentations-json-json-id-js-c28b828410e6f33d9245.js","mappings":"4KAsFA,UAxBqBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACtC,MAAM,QAAEG,GAAYF,EACpB,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,MAAM,gBACNC,UAAWJ,EAAQK,QACnBN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,MAAWR,EAAQS,YAAYT,EAAQU,KAC/CP,MAAO,iBAAiBH,EAAQG,QAChCQ,YAAaX,EAAQY,mBAAqBZ,EAAQW,YAClDE,MAAOb,EAAQa,OAASb,EAAQa,MAAMC,MAAMC,SAASC,MAGvDf,EAAAA,cAACgB,EAAAA,GAAO,CAACjB,QAASA,IACb,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations/{PresentationsJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Page, Project, ProjectProps } from '../../components';\nimport { baseUri } from '../../links';\n\nexport const query = graphql`\n query ($id: String!) {\n project: presentationsJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n description\n description_short\n description_long\n date\n role\n tech\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n buttons {\n name\n url\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainImageLink\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n }\n`;\n\nconst Presentation = ({ data, location }) => {\n const { project } = data;\n return (\n \n \n \n );\n};\n\nPresentation.propTypes = {\n data: PropTypes.shape({ project: ProjectProps }),\n location: PropTypes.object,\n};\n\nexport default Presentation;\n"],"names":["_ref","data","location","project","React","Page","title","dockLinks","buttons","metadata","url","baseUri","category","id","description","description_short","image","sharp","original","src","Project"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js b/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js deleted file mode 100644 index 48cdf88..0000000 --- a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[324],{2769:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{project:l}=e,{gallery:c}=e.json;return o.createElement(r.zr,{category:l.category,gallery:c,location:t,project:l})}}}]); -//# sourceMappingURL=component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map \ No newline at end of file diff --git a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map b/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map deleted file mode 100644 index 3574bbf..0000000 --- a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js","mappings":"kKAyGA,UAvBqBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACtC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations/{PresentationsJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: presentationsJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allPresentationsJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Presentation = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nPresentation.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Presentation;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-projects-js-a15f4187e03e2bc882ac.js b/component---src-pages-projects-js-a15f4187e03e2bc882ac.js new file mode 100644 index 0000000..840cde5 --- /dev/null +++ b/component---src-pages-projects-js-a15f4187e03e2bc882ac.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[429],{3049:function(e,t,a){a.r(t);var l=a(3892),s=a(6942),c=a.n(s),r=a(8007),n=a(6540),i=a(6690),m=a(1053);const o=["React","iOS","Unity","VR/AR","3D","2D"];t.default=e=>{let{data:t,location:a}=e;const s=(0,n.useMemo)((()=>{const e=new URLSearchParams(null==a?void 0:a.search);return e.has("filter")?e.get("filter"):null}),[a]),p=(0,n.useMemo)((()=>s?t.json.categories.map((e=>{const t=e.projects.map((e=>({...e,hidden:!e.tags.includes(s)})));return{title:e.title,projects:t,empty:t.every((e=>e.hidden))}})):t.json.categories),[t,s]);return n.createElement(i.YW,{id:"projects",location:a,metadata:{url:m.wW,title:"Adam Graham • Projects"}},n.createElement("article",{className:"projects-list container-lg"},n.createElement("section",{className:"projects-list__header"},n.createElement("h1",{className:"display-4"},"Projects"),n.createElement("div",{className:"projects-list__filters"},o.map((e=>n.createElement("button",{onClick:()=>{s===e?(0,r.navigate)(`${a.pathname}${a.hash}`,{replace:!0}):(0,r.navigate)(`${a.pathname}${a.hash}?filter=${e}`,{replace:!0})},key:e},n.createElement(l.Ex,{className:c()({"badge--selected":s===e}),pill:!0},e)))))),p.map((e=>n.createElement("section",{className:c()("projects-list__category",{"projects-list__category--empty":e.empty}),key:e.title},n.createElement("h2",{className:"h6"},e.title),n.createElement("ul",null,e.projects.map((e=>n.createElement("li",{className:c()("projects-list__item",{"projects-list__item--hidden":e.hidden}),key:e.title},n.createElement(l.N_,{ElementType:e.link?r.Link:"a",external:Boolean(e.externalLink&&!e.link),key:e.title,target:"_blank",to:e.link||e.externalLink,unstyled:!0},n.createElement("div",{className:"projects-list__text"},n.createElement("span",{className:"projects-list__title"},e.title),n.createElement("span",{className:"projects-list__description"},e.description)),n.createElement("hr",{className:"projects-list__line"}),n.createElement("div",{className:"projects-list__date"},e.date)))))))))))}}}]); +//# sourceMappingURL=component---src-pages-projects-js-a15f4187e03e2bc882ac.js.map \ No newline at end of file diff --git a/component---src-pages-projects-js-a15f4187e03e2bc882ac.js.map b/component---src-pages-projects-js-a15f4187e03e2bc882ac.js.map new file mode 100644 index 0000000..c4eb697 --- /dev/null +++ b/component---src-pages-projects-js-a15f4187e03e2bc882ac.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-projects-js-a15f4187e03e2bc882ac.js","mappings":"mNASO,MAkBD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,WACEM,UAAWS,IAAW,0BAA2B,CAC/C,iCAAkCxB,EAASO,QAE7Ce,IAAKtB,EAASM,OAEdG,EAAAA,cAAA,MAAIM,UAAU,MAAMf,EAASM,OAC7BG,EAAAA,cAAA,UACGT,EAASC,SAASF,KAAKG,GACtBO,EAAAA,cAAA,MACEM,UAAWS,IAAW,sBAAuB,CAC3C,8BAA+BtB,EAAQC,SAEzCmB,IAAKpB,EAAQI,OAEbG,EAAAA,cAACiB,EAAAA,GAAI,CACHC,YAAazB,EAAQ0B,KAAOC,EAAAA,KAAa,IACzCC,SAAUC,QAAQ7B,EAAQ8B,eAAiB9B,EAAQ0B,MACnDN,IAAKpB,EAAQI,MACb2B,OAAO,SACPC,GAAIhC,EAAQ0B,MAAQ1B,EAAQ8B,aAC5BG,UAAQ,GAER1B,EAAAA,cAAA,OAAKM,UAAU,uBACbN,EAAAA,cAAA,QAAMM,UAAU,wBACbb,EAAQI,OAEXG,EAAAA,cAAA,QAAMM,UAAU,8BACbb,EAAQkC,cAGb3B,EAAAA,cAAA,MAAIM,UAAU,wBACdN,EAAAA,cAAA,OAAKM,UAAU,uBAAuBb,EAAQmC,eAQvD,C","sources":["webpack://@adamgraham/portfolio/./src/pages/projects.js"],"sourcesContent":["import { Badge, Link } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { graphql, Link as GatsbyLink, navigate } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React, { useMemo } from 'react';\nimport { Page } from '../components';\nimport { baseUri } from '../links';\nimport '../styles/projects-list.css';\n\nexport const query = graphql`\n query Projects {\n json: allProjectsJson {\n categories: nodes {\n title\n projects {\n title\n description\n date\n link\n externalLink\n tags\n }\n }\n }\n }\n`;\n\nconst filters = ['React', 'iOS', 'Unity', 'VR/AR', '3D', '2D'];\n\nconst Projects = ({ data, location }) => {\n const filter = useMemo(() => {\n const urlParams = new URLSearchParams(location?.search);\n return urlParams.has('filter') ? urlParams.get('filter') : null;\n }, [location]);\n\n const filteredCategories = useMemo(() => {\n if (!filter) return data.json.categories;\n return data.json.categories.map((category) => {\n const projects = category.projects.map((project) => ({\n ...project,\n hidden: !project.tags.includes(filter),\n }));\n return {\n title: category.title,\n projects,\n empty: projects.every((project) => project.hidden),\n };\n });\n }, [data, filter]);\n\n return (\n \n
\n
\n

Projects

\n
\n {filters.map((tag) => (\n {\n if (filter === tag) {\n navigate(`${location.pathname}${location.hash}`, {\n replace: true,\n });\n } else {\n navigate(\n `${location.pathname}${location.hash}?filter=${tag}`,\n { replace: true }\n );\n }\n }}\n key={tag}\n >\n \n {tag}\n \n \n ))}\n
\n
\n {filteredCategories.map((category) => (\n \n

{category.title}

\n
    \n {category.projects.map((project) => (\n \n \n
    \n \n {project.title}\n \n \n {project.description}\n \n
    \n
    \n
    {project.date}
    \n \n \n ))}\n
\n \n ))}\n
\n \n );\n};\n\nProjects.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n title: PropTypes.string,\n Projects: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n description: PropTypes.string,\n date: PropTypes.string,\n link: PropTypes.string,\n externalLink: PropTypes.string,\n tags: PropTypes.arrayOf(PropTypes.string),\n })\n ),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Projects;\n"],"names":["filters","_ref","data","location","filter","useMemo","urlParams","URLSearchParams","search","has","get","filteredCategories","json","categories","map","category","projects","project","hidden","tags","includes","title","empty","every","React","Page","id","metadata","url","baseUri","className","tag","onClick","navigate","pathname","hash","replace","key","Badge","classNames","pill","Link","ElementType","link","GatsbyLink","external","Boolean","externalLink","target","to","unstyled","description","date"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-software-js-2028b311d027474c008d.js b/component---src-pages-software-js-2028b311d027474c008d.js deleted file mode 100644 index a56ffc0..0000000 --- a/component---src-pages-software-js-2028b311d027474c008d.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[506],{8282:function(a,o,e){e.r(o);var n=e(6540);o.default=()=>((0,n.useEffect)((()=>{"undefined"!=typeof window&&(window.open("https://github.com/adamgraham","_blank"),window.history.back())}),[]),null)}}]); -//# sourceMappingURL=component---src-pages-software-js-2028b311d027474c008d.js.map \ No newline at end of file diff --git a/component---src-pages-software-js-2028b311d027474c008d.js.map b/component---src-pages-software-js-2028b311d027474c008d.js.map deleted file mode 100644 index 4dd7da6..0000000 --- a/component---src-pages-software-js-2028b311d027474c008d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-software-js-2028b311d027474c008d.js","mappings":"wJAYA,UAViBA,MACfC,EAAAA,EAAAA,YAAU,KACc,oBAAXC,SACTA,OAAOC,KAAK,gCAAiC,UAC7CD,OAAOE,QAAQC,OACjB,GACC,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/software.js"],"sourcesContent":["import { useEffect } from 'react';\r\n\r\nconst Software = () => {\r\n useEffect(() => {\r\n if (typeof window !== 'undefined') {\r\n window.open('https://github.com/adamgraham', '_blank');\r\n window.history.back();\r\n }\r\n }, []);\r\n return null;\r\n};\r\n\r\nexport default Software;\r\n"],"names":["Software","useEffect","window","open","history","back"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-software-js-ea75cd86f29da1c9979a.js b/component---src-pages-software-js-ea75cd86f29da1c9979a.js new file mode 100644 index 0000000..19b8f68 --- /dev/null +++ b/component---src-pages-software-js-ea75cd86f29da1c9979a.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[506],{1053:function(e,n,t){t.d(n,{Jm:function(){return i},M:function(){return a},R1:function(){return m},lj:function(){return r},wW:function(){return o}});const o="https://adamgraham.github.io",a="https://github.com/adamgraham",i=[{key:"games",name:"Games",to:"/games"},{key:"websites",name:"Websites",to:"/websites"},{key:"art",name:"Interactive Art",to:"/art"},{key:"tech",name:"Tech Showcases",to:"/tech"},{key:"presentations",name:"Presentations",to:"/presentations"}],m=[{key:"home",name:"Home",icon:"home",to:"/"},{key:"gallery",name:"Gallery",icon:"collections",to:"/games"},{key:"projects",name:"Projects",icon:"menu",to:"/projects"}],r=[{key:"github",name:"GitHub",url:a},{key:"linkedIn",name:"LinkedIn",url:"https://www.linkedin.com/in/adamzigurous"},{key:"resume",name:"Resume",icon:"description",url:"https://docs.google.com/document/d/1qLHBV7Ry11O-pd0XC3HvALBIKJ8YDBmSafP0Z5c4dww/edit?usp=drive_link"},{key:"email",name:"Email",icon:"mail",url:"mailto:adam@zigurous.com"}]},8282:function(e,n,t){t.r(n);var o=t(6540),a=t(1053);n.default=()=>((0,o.useEffect)((()=>{"undefined"!=typeof window&&(window.open(a.M,"_blank"),window.history.back())}),[]),null)}}]); +//# sourceMappingURL=component---src-pages-software-js-ea75cd86f29da1c9979a.js.map \ No newline at end of file diff --git a/component---src-pages-software-js-ea75cd86f29da1c9979a.js.map b/component---src-pages-software-js-ea75cd86f29da1c9979a.js.map new file mode 100644 index 0000000..dc4af97 --- /dev/null +++ b/component---src-pages-software-js-ea75cd86f29da1c9979a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-software-js-ea75cd86f29da1c9979a.js","mappings":"mQAAO,MAAMA,EAAU,+BAGVC,EAAS,gCAKTC,EAAc,CACzB,CACEC,IAAK,QACLC,KAAM,QACNC,GAAI,UAEN,CACEF,IAAK,WACLC,KAAM,WACNC,GAAI,aAEN,CACEF,IAAK,MACLC,KAAM,kBACNC,GAAI,QAEN,CACEF,IAAK,OACLC,KAAM,iBACNC,GAAI,SAEN,CACEF,IAAK,gBACLC,KAAM,gBACNC,GAAI,mBAIKC,EAAY,CACvB,CACEH,IAAK,OACLC,KAAM,OACNG,KAAM,OACNF,GAAI,KAEN,CACEF,IAAK,UACLC,KAAM,UACNG,KAAM,cACNF,GAAI,UAEN,CACEF,IAAK,WACLC,KAAM,WACNG,KAAM,OACNF,GAAI,cAIKG,EAAc,CACzB,CACEL,IAAK,SACLC,KAAM,SACNK,IAAKR,GAEP,CACEE,IAAK,WACLC,KAAM,WACNK,IA9DoB,4CAgEtB,CACEN,IAAK,SACLC,KAAM,SACNG,KAAM,cACNE,IAtEkB,uGAwEpB,CACEN,IAAK,QACLC,KAAM,QACNG,KAAM,OACNE,IA7EiB,4B,sDCYrB,UAViBC,MACfC,EAAAA,EAAAA,YAAU,KACc,oBAAXC,SACTA,OAAOC,KAAKZ,EAAAA,EAAQ,UACpBW,OAAOE,QAAQC,OACjB,GACC,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/links.js","webpack://@adamgraham/portfolio/./src/pages/software.js"],"sourcesContent":["export const baseUri = 'https://adamgraham.github.io';\nexport const email = 'mailto:adam@zigurous.com';\nexport const resume = 'https://docs.google.com/document/d/1qLHBV7Ry11O-pd0XC3HvALBIKJ8YDBmSafP0Z5c4dww/edit?usp=drive_link'; // prettier-ignore\nexport const github = 'https://github.com/adamgraham';\nexport const linkedIn = 'https://www.linkedin.com/in/adamzigurous';\nexport const instagram = 'http://instagram.com/adam.zigurous';\nexport const twitter = 'https://twitter.com/zigurous';\n\nexport const headerLinks = [\n {\n key: 'games',\n name: 'Games',\n to: '/games',\n },\n {\n key: 'websites',\n name: 'Websites',\n to: '/websites',\n },\n {\n key: 'art',\n name: 'Interactive Art',\n to: '/art',\n },\n {\n key: 'tech',\n name: 'Tech Showcases',\n to: '/tech',\n },\n {\n key: 'presentations',\n name: 'Presentations',\n to: '/presentations',\n },\n];\n\nexport const dockLinks = [\n {\n key: 'home',\n name: 'Home',\n icon: 'home',\n to: '/',\n },\n {\n key: 'gallery',\n name: 'Gallery',\n icon: 'collections',\n to: '/games',\n },\n {\n key: 'projects',\n name: 'Projects',\n icon: 'menu',\n to: '/projects',\n },\n];\n\nexport const socialLinks = [\n {\n key: 'github',\n name: 'GitHub',\n url: github,\n },\n {\n key: 'linkedIn',\n name: 'LinkedIn',\n url: linkedIn,\n },\n {\n key: 'resume',\n name: 'Resume',\n icon: 'description',\n url: resume,\n },\n {\n key: 'email',\n name: 'Email',\n icon: 'mail',\n url: email,\n },\n];\n","import { useEffect } from 'react';\nimport { github } from '../links';\n\nconst Software = () => {\n useEffect(() => {\n if (typeof window !== 'undefined') {\n window.open(github, '_blank');\n window.history.back();\n }\n }, []);\n return null;\n};\n\nexport default Software;\n"],"names":["baseUri","github","headerLinks","key","name","to","dockLinks","icon","socialLinks","url","Software","useEffect","window","open","history","back"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-js-66907ecb2446d2b384e2.js b/component---src-pages-tech-js-66907ecb2446d2b384e2.js new file mode 100644 index 0000000..c4f3f60 --- /dev/null +++ b/component---src-pages-tech-js-66907ecb2446d2b384e2.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[935],{8019:function(e,a,t){t.r(a);var c=t(6540),o=t(6690),l=t(1053);a.default=e=>{let{data:a,location:t}=e;const{slides:s}=a.json;return c.createElement(o.YW,{id:"tech",title:"Tech Showcases",location:t,metadata:{url:`${l.wW}/tech`,title:"Adam Graham • Tech Showcases"}},c.createElement(o.Z2,{category:"tech",location:t,slides:s}))}}}]); +//# sourceMappingURL=component---src-pages-tech-js-66907ecb2446d2b384e2.js.map \ No newline at end of file diff --git a/component---src-pages-tech-js-66907ecb2446d2b384e2.js.map b/component---src-pages-tech-js-66907ecb2446d2b384e2.js.map new file mode 100644 index 0000000..7835086 --- /dev/null +++ b/component---src-pages-tech-js-66907ecb2446d2b384e2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-tech-js-66907ecb2446d2b384e2.js","mappings":"4KA0DA,UA1BaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,OAAEG,GAAWF,EAAKG,KACxB,OACEC,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,OACHC,MAAM,iBACNN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,UACRH,MAAO,iCAGTH,EAAAA,cAACO,EAAAA,GAAO,CAACC,SAAS,OAAOX,SAAUA,EAAUC,OAAQA,IAChD,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Gallery, Page, SlideProps } from '../components';\nimport { baseUri } from '../links';\n\nexport const query = graphql`\n query Tech {\n json: allTechJson {\n slides: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Tech = ({ data, location }) => {\n const { slides } = data.json;\n return (\n \n \n \n );\n};\n\nTech.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n slides: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Tech;\n"],"names":["_ref","data","location","slides","json","React","Page","id","title","metadata","url","baseUri","Gallery","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-js-c3cee92e893b944846eb.js b/component---src-pages-tech-js-c3cee92e893b944846eb.js deleted file mode 100644 index a0c90a6..0000000 --- a/component---src-pages-tech-js-c3cee92e893b944846eb.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[935],{8019:function(a,e,t){t.r(e);var o=t(6540),l=t(8305);e.default=a=>{let{data:e,location:t}=a;const{gallery:r}=e.json;return o.createElement(l.oY,{category:"tech",gallery:r,location:t})}}}]); -//# sourceMappingURL=component---src-pages-tech-js-c3cee92e893b944846eb.js.map \ No newline at end of file diff --git a/component---src-pages-tech-js-c3cee92e893b944846eb.js.map b/component---src-pages-tech-js-c3cee92e893b944846eb.js.map deleted file mode 100644 index 4386f5c..0000000 --- a/component---src-pages-tech-js-c3cee92e893b944846eb.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-tech-js-c3cee92e893b944846eb.js","mappings":"kKA6CA,UAdaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,OAAOJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Tech {\r\n json: allTechJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Tech = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nTech.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Tech;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js b/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js deleted file mode 100644 index 05ec9dc..0000000 --- a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[746],{4847:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{project:l}=e,{gallery:c}=e.json;return o.createElement(r.zr,{category:l.category,gallery:c,location:t,project:l})}}}]); -//# sourceMappingURL=component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map \ No newline at end of file diff --git a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map b/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map deleted file mode 100644 index 0126b65..0000000 --- a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech/{TechJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: techJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allTechJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Tech = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nTech.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Tech;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js b/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js new file mode 100644 index 0000000..a6d8952 --- /dev/null +++ b/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[746],{4847:function(t,a,e){e.r(a);var o=e(6540),r=e(6690),i=e(1053);a.default=t=>{let{data:a,location:e}=t;const{project:c}=a;return o.createElement(r.YW,{title:"Tech Showcases",dockLinks:c.buttons,location:e,metadata:{url:`${i.wW}/${c.category}/${c.id}`,title:`Adam Graham • ${c.title}`,description:c.description_short||c.description,image:c.image&&c.image.sharp.original.src}},o.createElement(r.MM,{project:c}))}}}]); +//# sourceMappingURL=component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js.map \ No newline at end of file diff --git a/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js.map b/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js.map new file mode 100644 index 0000000..9c44351 --- /dev/null +++ b/component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-tech-tech-json-json-id-js-fd719b20aee8818d9dec.js","mappings":"4KAsFA,UAxBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,EACpB,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,MAAM,iBACNC,UAAWJ,EAAQK,QACnBN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,MAAWR,EAAQS,YAAYT,EAAQU,KAC/CP,MAAO,iBAAiBH,EAAQG,QAChCQ,YAAaX,EAAQY,mBAAqBZ,EAAQW,YAClDE,MAAOb,EAAQa,OAASb,EAAQa,MAAMC,MAAMC,SAASC,MAGvDf,EAAAA,cAACgB,EAAAA,GAAO,CAACjB,QAASA,IACb,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech/{TechJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Page, Project, ProjectProps } from '../../components';\nimport { baseUri } from '../../links';\n\nexport const query = graphql`\n query ($id: String!) {\n project: techJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n description\n description_short\n description_long\n date\n role\n tech\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n buttons {\n name\n url\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainImageLink\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n }\n`;\n\nconst Tech = ({ data, location }) => {\n const { project } = data;\n return (\n \n \n \n );\n};\n\nTech.propTypes = {\n data: PropTypes.shape({ project: ProjectProps }),\n location: PropTypes.object,\n};\n\nexport default Tech;\n"],"names":["_ref","data","location","project","React","Page","title","dockLinks","buttons","metadata","url","baseUri","category","id","description","description_short","image","sharp","original","src","Project"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js b/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js new file mode 100644 index 0000000..714de27 --- /dev/null +++ b/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[933],{7177:function(e,t,a){a.r(t);var s=a(6540),i=a(6690),l=a(1053);t.default=e=>{let{data:t,location:a}=e;const{slides:o}=t.json;return s.createElement(i.YW,{id:"websites",title:"Websites",location:a,metadata:{url:`${l.wW}/websites`,title:"Adam Graham • Websites"}},s.createElement(i.Z2,{category:"websites",location:a,slides:o}))}}}]); +//# sourceMappingURL=component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js.map \ No newline at end of file diff --git a/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js.map b/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js.map new file mode 100644 index 0000000..ab1287b --- /dev/null +++ b/component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-websites-js-e6f8e60d3f29edbfcba7.js","mappings":"4KA0DA,UA1BiBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAClC,MAAM,OAAEG,GAAWF,EAAKG,KACxB,OACEC,EAAAA,cAACC,EAAAA,GAAI,CACHC,GAAG,WACHC,MAAM,WACNN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,cACRH,MAAO,2BAGTH,EAAAA,cAACO,EAAAA,GAAO,CAACC,SAAS,WAAWX,SAAUA,EAAUC,OAAQA,IACpD,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Gallery, Page, SlideProps } from '../components';\nimport { baseUri } from '../links';\n\nexport const query = graphql`\n query Websites {\n json: allWebsitesJson {\n slides: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Websites = ({ data, location }) => {\n const { slides } = data.json;\n return (\n \n \n \n );\n};\n\nWebsites.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n slides: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Websites;\n"],"names":["_ref","data","location","slides","json","React","Page","id","title","metadata","url","baseUri","Gallery","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-js-fbcd51703c398382318d.js b/component---src-pages-websites-js-fbcd51703c398382318d.js deleted file mode 100644 index b0513cc..0000000 --- a/component---src-pages-websites-js-fbcd51703c398382318d.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[933],{7177:function(a,e,t){t.r(e);var o=t(6540),l=t(8305);e.default=a=>{let{data:e,location:t}=a;const{gallery:r}=e.json;return o.createElement(l.oY,{category:"websites",gallery:r,location:t})}}}]); -//# sourceMappingURL=component---src-pages-websites-js-fbcd51703c398382318d.js.map \ No newline at end of file diff --git a/component---src-pages-websites-js-fbcd51703c398382318d.js.map b/component---src-pages-websites-js-fbcd51703c398382318d.js.map deleted file mode 100644 index b5e6a51..0000000 --- a/component---src-pages-websites-js-fbcd51703c398382318d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-websites-js-fbcd51703c398382318d.js","mappings":"kKA+CA,UAhBiBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAClC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,WAAWJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Websites {\r\n json: allWebsitesJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Websites = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nWebsites.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Websites;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js b/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js new file mode 100644 index 0000000..69f1e38 --- /dev/null +++ b/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[922],{5175:function(t,e,a){a.r(e);var i=a(6540),r=a(6690),o=a(1053);e.default=t=>{let{data:e,location:a}=t;const{project:c}=e;return i.createElement(r.YW,{title:"Websites",dockLinks:c.buttons,location:a,metadata:{url:`${o.wW}/${c.category}/${c.id}`,title:`Adam Graham • ${c.title}`,description:c.description_short||c.description,image:c.image&&c.image.sharp.original.src}},i.createElement(r.MM,{project:c}))}}}]); +//# sourceMappingURL=component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js.map \ No newline at end of file diff --git a/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js.map b/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js.map new file mode 100644 index 0000000..0024334 --- /dev/null +++ b/component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-websites-websites-json-json-id-js-0a43b2c359f70cc28297.js","mappings":"4KAsFA,UAxBgBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACjC,MAAM,QAAEG,GAAYF,EACpB,OACEG,EAAAA,cAACC,EAAAA,GAAI,CACHC,MAAM,WACNC,UAAWJ,EAAQK,QACnBN,SAAUA,EACVO,SAAU,CACRC,IAAK,GAAGC,EAAAA,MAAWR,EAAQS,YAAYT,EAAQU,KAC/CP,MAAO,iBAAiBH,EAAQG,QAChCQ,YAAaX,EAAQY,mBAAqBZ,EAAQW,YAClDE,MAAOb,EAAQa,OAASb,EAAQa,MAAMC,MAAMC,SAASC,MAGvDf,EAAAA,cAACgB,EAAAA,GAAO,CAACjB,QAASA,IACb,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites/{WebsitesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Page, Project, ProjectProps } from '../../components';\nimport { baseUri } from '../../links';\n\nexport const query = graphql`\n query ($id: String!) {\n project: websitesJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n description\n description_short\n description_long\n date\n role\n tech\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n buttons {\n name\n url\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainImageLink\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n }\n`;\n\nconst Website = ({ data, location }) => {\n const { project } = data;\n return (\n \n \n \n );\n};\n\nWebsite.propTypes = {\n data: PropTypes.shape({ project: ProjectProps }),\n location: PropTypes.object,\n};\n\nexport default Website;\n"],"names":["_ref","data","location","project","React","Page","title","dockLinks","buttons","metadata","url","baseUri","category","id","description","description_short","image","sharp","original","src","Project"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js b/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js deleted file mode 100644 index 2dd8533..0000000 --- a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[922],{5175:function(a,e,t){t.r(e);var o=t(6540),r=t(8305);e.default=a=>{let{data:e,location:t}=a;const{project:l}=e,{gallery:c}=e.json;return o.createElement(r.zr,{category:l.category,gallery:c,location:t,project:l})}}}]); -//# sourceMappingURL=component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map \ No newline at end of file diff --git a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map b/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map deleted file mode 100644 index dfc377d..0000000 --- a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js","mappings":"kKAyGA,UAvBgBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACjC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites/{WebsitesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: websitesJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allWebsitesJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Website = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nWebsite.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Website;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js b/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js deleted file mode 100644 index ef3d41c..0000000 --- a/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js.LICENSE.txt */ -(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[737],{6304:function(e,t,n){"use strict";n.d(t,{$n:function(){return Se},e2:function(){return _e},QN:function(){return je},i_:function(){return He},N_:function(){return re},jq:function(){return he},vb:function(){return De},U1:function(){return ve},Ub:function(){return be},ln:function(){return we}});var r=n(1366),a=n.n(r),o=n(6540),i=n(2911),s=n.n(i),l=(n(5014),n(3222),n(3433),n(7171),n(5489),n(5650),n(961)),u=n(681);function c(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}(),h=o.createContext(new p);h.Provider,h.Consumer;var m=n(2406),f=n.n(m);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function F(){return void 0!==n.g.window?n.g.window.innerWidth:0}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.window.self;return e===n.g.window.top||function(){try{return n.g.window.location.hostname!==n.g.window.parent.location.hostname}catch(e){return!0}}()?e:N(e.parent)}var M=300,P=27,z=37,L=39,j=function(e){!function(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&&E(e,t)}(s,e);var t,r,a,i=O(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=o.createRef(),t.zoomInBtn=o.createRef(),t.zoomOutBtn=o.createRef(),t.caption=o.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(x(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(x(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(x(t)),t.handleKeyInput=t.handleKeyInput.bind(x(t)),t.handleMouseUp=t.handleMouseUp.bind(x(t)),t.handleMouseDown=t.handleMouseDown.bind(x(t)),t.handleMouseMove=t.handleMouseMove.bind(x(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(x(t)),t.handleTouchStart=t.handleTouchStart.bind(x(t)),t.handleTouchMove=t.handleTouchMove.bind(x(t)),t.handleTouchEnd=t.handleTouchEnd.bind(x(t)),t.handlePointerEvent=t.handlePointerEvent.bind(x(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(x(t)),t.handleWindowResize=t.handleWindowResize.bind(x(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(x(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(x(t)),t.requestClose=t.requestClose.bind(x(t)),t.requestMoveNext=t.requestMoveNext.bind(x(t)),t.requestMovePrev=t.requestMovePrev.bind(x(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return t=s,r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=N(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach((function(n){t.props[n.name]!==e[n.name]&&(t.moveRequested=!1)})),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,n=!1,r={},a={};this.getSrcTypes().forEach((function(o){e[o.name]!==t.props[o.name]&&(n=!0,r[e[o.name]]=!0,a[t.props[o.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(r).forEach((function(e){!(e in a)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==r})),e()}),t);return this.timeouts.push(r),r}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),a=r.height-2*this.props.imagePadding,o=r.width-2*this.props.imagePadding;return n||(a=Math.min(a,t),o=Math.min(o,e)),o/a>e/t?{width:e*a/t,height:a}:{width:o,height:t*o/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),a=0,o=0;return{maxX:a=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2,maxY:o=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,minX:-1*a,minY:-1*o}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:F(),height:void 0!==n.g.window?n.g.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var r=Math.max(0,Math.min(M,e));if(r!==this.state.zoomLevel)if(0!==r){var a=this.getBestImageForType("mainSrc");if(null!==a){var o=this.getZoomMultiplier(),i=this.getZoomMultiplier(r),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,u=void 0!==n?n-s.top:s.height/2,c=(s.width-a.width*o)/2,d=(s.height-a.height*o)/2,p=l-(l-(c-this.state.offsetX))/o*i,h=u-(u-(d-this.state.offsetY))/o*i,m=(s.width-a.width*i)/2-p,f=(s.height-a.height*i)/2-h;if(3!==this.currentAction){var g=this.getMaxOffsets();this.state.zoomLevel>r&&(m=Math.max(g.minX,Math.min(g.maxX,m)),f=Math.max(g.minY,Math.min(g.maxY,f)))}this.setState({zoomLevel:r,offsetX:m,offsetY:f})}}else this.setState({zoomLevel:r,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),n=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),n=500,this.scrollX=0)),0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),n)))}},{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0)}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&s.isTargetMatchImage(e.target)&&(this.addPointer(s.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[s.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(s.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":s.isTargetMatchImage(e.target)&&(this.addPointer(s.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[s.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(s.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&s.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(s.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return s.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(s.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,r=this.moveStartX-t+this.moveStartOffsetX,a=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===r&&this.state.offsetY===a||this.setState({offsetX:r,offsetY:a})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*r)){if(n<200&&n0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return{x:t.x-(t.x-n.x)/2,y:t.y-(t.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n0&&t+a>=r||e.deltaY<0&&a<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var a=this;if(this.isImageLoaded(t))this.setTimeout((function(){r()}),1);else{var o=new n.g.Image;this.props.imageCrossOrigin&&(o.crossOrigin=this.props.imageCrossOrigin),o.onerror=function(n){a.props.onImageLoadError(t,e,n),a.setState((function(t){return{loadErrorStatus:v(v({},t.loadErrorStatus),{},y({},e,!0))}})),r(n)},o.onload=function(){a.props.onImageLoad(t,e,o),a.imageCache[t]={loaded:!0,width:o.width,height:o.height},r()},o.src=t}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach((function(n){var r=n.name;t[r]&&e.state.loadErrorStatus[r]&&e.setState((function(e){return{loadErrorStatus:v(v({},e.loadErrorStatus),{},y({},r,!1))}})),t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(r,t[r],function(t,n){return function(r){r||e.props[t]!==n||e.didUnmount||e.forceUpdate()}}(r,t[r]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,a=t.animationDuration,i=t.clickOutsideToClose,l=t.discourageDownloads,u=t.enableZoom,c=t.imageTitle,d=t.nextSrc,p=t.prevSrc,h=t.toolbarButtons,m=t.reactModalStyle,g=t.onAfterOpen,b=t.imageCrossOrigin,y=t.reactModalProps,k=t.loader,E=this.state,x=E.zoomLevel,O=E.offsetX,C=E.offsetY,_=E.isClosing,T=E.loadErrorStatus,F=this.getLightboxRect(),N={};!r&&this.isAnimating()&&(N=v(v({},N),{},{transition:"transform ".concat(a,"ms")}));var P={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;P[t]=n}));var z=[],L=function(t,n,r){if(e.props[t]){var a,i=e.getBestImageForType(t),u=v(v({},N),s.getTransform(v(v({},r),i)));if(x>0&&(u.cursor="move"),null===i&&(a=T,Object.keys(a).some((function(e){return a[e]}))))z.push(o.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:u,key:e.props[t]+P[t]},o.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==i){var d=i.src;l?(u.backgroundImage="url('".concat(d,"')"),z.push(o.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:u,key:d+P[t]},o.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):z.push(o.createElement("img",w({},b?{crossOrigin:b}:{},{className:"".concat(n," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:u,src:d,key:d+P[t],alt:"string"==typeof c?c:A("Image"),draggable:!1})))}else{var p=void 0!==k?k:o.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},S(new Array(12)).map((function(e,t){return o.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));z.push(o.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:u,key:e.props[t]+P[t]},o.createElement("div",{className:"ril__loadingContainer"},p)))}}},j=this.getZoomMultiplier();L("nextSrc","ril-image-next ril__imageNext",{x:F.width}),L("mainSrc","ril-image-current",{x:-1*O,y:-1*C,zoom:j}),L("prevSrc","ril-image-prev ril__imagePrev",{x:-1*F.width});var I={overlay:v({zIndex:1e3,backgroundColor:"transparent"},m.overlay),content:v({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},m.content)};return o.createElement(f(),w({isOpen:!0,onRequestClose:i?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),g()},style:I,contentLabel:A("Lightbox"),appElement:void 0!==n.g.window?n.g.window.document.body:void 0},y),o.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(_?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(a,"ms"),animationDuration:"".concat(a,"ms"),animationDirection:_?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},o.createElement("div",{className:"ril-inner ril__inner",onClick:i?this.closeIfClickInner:void 0},z),p&&o.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),d&&o.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),o.createElement("div",{className:"ril-toolbar ril__toolbar"},o.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},c))),o.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},h&&h.map((function(e,t){return o.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),u&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(S(x===M?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||x===M,onClick:this.isAnimating()||x===M?void 0:this.handleZoomInButtonClick})),u&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(S(0===x?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===x,onClick:this.isAnimating()||0===x?void 0:this.handleZoomOutButtonClick})),o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&o.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},o.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],a=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,r=e.y,a=void 0===r?0:r,o=e.zoom,i=void 0===o?1:o,s=e.width,l=e.targetWidth,u=n,c=F();s>c&&(u+=(c-s)/2);var d=i*(l/s);return{transform:"translate3d(".concat(u,"px,").concat(a,"px,0) scale3d(").concat(d,",").concat(d,",1)")}}}],r&&b(t.prototype,r),a&&b(t,a),s}(o.Component);j.propTypes={mainSrc:a().string.isRequired,prevSrc:a().string,nextSrc:a().string,mainSrcThumbnail:a().string,prevSrcThumbnail:a().string,nextSrcThumbnail:a().string,onCloseRequest:a().func.isRequired,onMovePrevRequest:a().func,onMoveNextRequest:a().func,onImageLoadError:a().func,onImageLoad:a().func,onAfterOpen:a().func,discourageDownloads:a().bool,animationDisabled:a().bool,animationOnKeyInput:a().bool,animationDuration:a().number,keyRepeatLimit:a().number,keyRepeatKeyupBonus:a().number,imageTitle:a().node,imageCaption:a().node,imageCrossOrigin:a().string,reactModalStyle:a().shape({}),imagePadding:a().number,wrapperClassName:a().string,toolbarButtons:a().arrayOf(a().node),clickOutsideToClose:a().bool,enableZoom:a().bool,reactModalProps:a().shape({}),nextLabel:a().string,prevLabel:a().string,zoomInLabel:a().string,zoomOutLabel:a().string,closeLabel:a().string,imageLoadErrorMessage:a().node,loader:a().node},j.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0};var I=j,R=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Discord"),o.createElement("path",{d:"M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z"})),D=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 184 184",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Email"),o.createElement("path",{d:"M160.746,24.61H23.254C10.432,24.61,0,35.042,0,47.864v88.271c0,12.822,10.432,23.254,23.254,23.254h137.492c12.822,0,23.254-10.432,23.254-23.254V47.864C184,35.042,173.568,24.61,160.746,24.61z M157.113,39.61L92,89.909L26.887,39.61H157.113z M160.746,144.39H23.254c-4.551,0-8.254-3.703-8.254-8.254V49.382l72.415,55.94c1.35,1.043,2.968,1.564,4.585,1.564s3.235-0.521,4.585-1.564L169,49.382v86.753C169,140.687,165.297,144.39,160.746,144.39z"})),$=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Facebook"),o.createElement("path",{d:"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z"})),B=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"GitHub"),o.createElement("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})),q=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Instagram"),o.createElement("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})),H=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"LinkedIn"),o.createElement("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),Y=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Patreon"),o.createElement("path",{d:"M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z"})),X=o.createElement("svg",{focusable:"false",viewBox:"0 0 25.576 30.177",width:"25.576px",height:"30.177px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 01.314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 011.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 01-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 00-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 01-.096.035H7.266z",fill:"#253b80"}),o.createElement("path",{d:"M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 00.695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 00-1.336-1.03z",fill:"#179bd7"}),o.createElement("path",{d:"M21.754 7.151a9.757 9.757 0 00-1.203-.267 15.284 15.284 0 00-2.426-.177h-7.352a1.172 1.172 0 00-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 011.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 00-1.017-.429 9.045 9.045 0 00-.277-.087z",fill:"#222d65"}),o.createElement("path",{d:"M9.614 7.699a1.169 1.169 0 011.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 011.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 00.795.932h5.791l1.454-9.225 1.564-9.906z",fill:"#253b80"})),Z=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"translateY(1px)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Twitch"),o.createElement("path",{d:"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"})),U=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.1)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Twitter"),o.createElement("path",{d:"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"})),W=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Unity"),o.createElement("path",{d:"M24 9.533L21.374 0 11.57 2.555l-1.45 2.49-2.945-.022L0 12l7.176 6.978 2.943-.023 1.454 2.49 9.8 2.554L24 14.47 22.508 12 24 9.533zM10.356 5.445l7.499-1.874-4.304 7.251H4.94l5.416-5.377zm0 13.11L4.94 13.18h8.61l4.305 7.251-7.5-1.874zm9.598.696l-4.307-7.25 4.307-7.253L22.033 12l-2.08 7.25z"})),V=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.125)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"YouTube"),o.createElement("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"})),K={discord:R,email:D,facebook:$,github:B,instagram:q,linkedIn:H,patreon:Y,paypal:X,twitch:Z,twitter:U,unity:W,youtube:V},G=a().oneOfType([a().string,a().shape({key:a().string,name:a().string,color:a().string,url:a().string,icon:a().element})]),J={discord:{key:"discord",name:"Discord",color:"#7289da",url:"https://discord.gg/DdYyWVb",icon:R},email:{key:"email",name:"Email",url:"mailto:support@zigurous.com",icon:D},facebook:{key:"facebook",name:"Facebook",color:"#1877f2",url:"https://facebook.com/zigurous",icon:$},github:{key:"github",name:"GitHub",url:"https://github.com/zigurous",icon:B},instagram:{key:"instagram",name:"Instagram",color:"#e4405f",url:"https://instagram.com/zigurous",icon:q},patreon:{key:"patreon",name:"Patreon",color:"#ff424d",url:"https://patreon.com/zigurous",icon:Y},paypal:{key:"paypal",name:"PayPal",color:"#00457c",url:"https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8",icon:X},twitch:{key:"twitch",name:"Twitch",color:"#9146ff",url:"https://twitch.tv/zigurous",icon:Z},twitter:{key:"twitter",name:"Twitter",color:"#1da1f2",url:"https://twitter.com/zigurous",icon:U},unity:{key:"unity",name:"Unity",url:"https://assetstore.unity.com/publishers/51884",icon:W},youtube:{key:"youtube",name:"YouTube",color:"#ff0000",url:"https://youtube.com/c/zigurous?sub_confirmation=1",icon:V}},Q={wordmark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 596 192"},o.createElement("path",{d:"M528.71,98.72a18.85,18.85,0,0,0-7.36-5.56,92.48,92.48,0,0,0-10.88-3.52A43,43,0,0,1,501.91,87a4.28,4.28,0,0,1-2.76-4,4.21,4.21,0,0,1,1.72-3.52,8.33,8.33,0,0,1,5-1.28A9.36,9.36,0,0,1,511.91,80a7.68,7.68,0,0,1,2.76,5.16h17c-.64-6.4-3.12-11.56-7.48-15.4S513.91,64,506.39,64a31,31,0,0,0-13.2,2.56,19.26,19.26,0,0,0-8.4,7A17.5,17.5,0,0,0,482,83.28q0,6.36,3.12,10.08a18.58,18.58,0,0,0,7.4,5.48,79.1,79.1,0,0,0,10.8,3.28A55.41,55.41,0,0,1,512,105a4.27,4.27,0,0,1,2.68,4,4.37,4.37,0,0,1-1.88,3.64,9,9,0,0,1-5.32,1.4,9.94,9.94,0,0,1-6.36-2,7.23,7.23,0,0,1-2.92-5.2H480a20.18,20.18,0,0,0,4,10.84,23.8,23.8,0,0,0,9.68,7.64,33.14,33.14,0,0,0,14,2.8,32.3,32.3,0,0,0,12.88-2.44A19.55,19.55,0,0,0,529,118.8a16.93,16.93,0,0,0,3-9.76C531.91,104.72,530.83,101.28,528.71,98.72Z"}),o.createElement("polygon",{points:"64 40.01 64 58.01 101.8 58.01 97.6 64.01 65.4 110.01 64 112.01 64 128.01 77.6 128.01 128 128.01 128 110.01 90.2 110.01 122.4 64.01 126.6 58.01 128 56.01 128 40.01 114.4 40.01 64 40.01"}),o.createElement("path",{d:"M368,64a32,32,0,1,0,32,32.16v-.24A32,32,0,0,0,368,64Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,368,112Z"}),o.createElement("path",{d:"M312,71.23V64H292v36.24a12,12,0,0,1-24,0V64H248v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V96a16,16,0,0,1,16-16h4V64.07c-.68,0-1.32-.08-2-.08A25.92,25.92,0,0,0,312,71.23Z"}),o.createElement("path",{d:"M452,83.23v17a12,12,0,0,1-24,0V64H408v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V64H452Z"}),o.createElement("path",{d:"M216,69.76A25.37,25.37,0,0,0,200,64c-15.48,0-28,14.32-28,32a35.72,35.72,0,0,0,3.4,15.32,30.58,30.58,0,0,0,10.4,12.24,24.93,24.93,0,0,0,28.4,0,18.85,18.85,0,0,0,1.8-1.32V130c0,7.72-7.16,14-16,14a17,17,0,0,1-10.4-3.4l-8.92,12.72a37.37,37.37,0,0,0,35.32,4c11.8-4.64,20-15.12,20-27.28V64H216ZM204,112a15.93,15.93,0,0,1-14.72-9.8A15.22,15.22,0,0,1,188,96a16,16,0,1,1,30.08,7.6,17.11,17.11,0,0,1-2.08,3A15.93,15.93,0,0,1,204,112Z"}),o.createElement("rect",{x:"140.01",y:"64.01",width:"20",height:"64"}),o.createElement("path",{d:"M150,36a11,11,0,0,0-10,6.16,9.83,9.83,0,0,0,0,8.64,11.16,11.16,0,0,0,20,0,9.83,9.83,0,0,0,0-8.64A11,11,0,0,0,150,36Z"})),lettermark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o.createElement("polygon",{points:"382.81 331.67 382.81 384.03 311.24 384.03 347.9 331.67 382.81 331.67"}),o.createElement("polygon",{points:"380.48 128.03 237.93 331.67 312.99 331.67 276.33 384.03 129.13 384.03 271.68 180.39 308.33 128.03 380.48 128.03"}),o.createElement("polygon",{points:"272.26 128.03 235.6 180.39 150.08 180.39 150.08 128.03 272.26 128.03"})),logomark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o.createElement("polygon",{points:"368.46 177.61 256 112.68 143.54 177.61 256 242.54 368.46 177.61"}),o.createElement("polygon",{points:"128 334.39 240.46 399.32 240.46 269.46 128 204.53 128 334.39"}),o.createElement("polygon",{points:"384 204.53 271.54 269.46 271.54 399.32 384 334.39 384 204.53"}))};function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var ne=["activeClassName","children","className","ElementType","external","href","path","rel","target","to","underlined","unstyled"];function re(e){var t=e.activeClassName,n=e.children,r=e.className,a=e.ElementType,i=void 0===a?"a":a,l=e.external,u=void 0!==l&&l,c=e.href,d=e.path,p=e.rel,h=e.target,m=e.to,f=e.underlined,g=void 0!==f&&f,v=e.unstyled,b=void 0!==v&&v,y=te(e,ne);return o.createElement(i,ee({},y,"a"===i?{href:c||d||m,rel:p||(u?"noopener noreferrer":void 0),target:h||(u?"_blank":void 0)}:{to:m||d||c,href:c||d||m,activeClassName:t},{className:s()({link:!b},{"link--underlined":g&&!b},r)}),n)}function ae(e,t){return e?o.createElement("img",{alt:"Logo",src:e}):Q[t]}function oe(e){var t=e.fill,n=e.image,r=e.onClick,a=e.size,i=e.style,l=e.variant,u=void 0===l?"wordmark":l;return o.createElement("div",{className:s()("logo",u,void 0===a?"medium":a,e.className),style:ee({},i,{fill:t})},r?o.createElement("button",{"aria-label":"Logo",onClick:function(e){e.target.blur(),r()}},ae(n,u)):ae(n,u))}re.propTypes={activeClassName:a().string,children:a().node,className:a().string,ElementType:a().elementType,external:a().bool,href:a().string,path:a().string,rel:a().string,target:a().string,to:a().string,underlined:a().bool,unstyled:a().bool},oe.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),oe.variant=Object.freeze({wordmark:"wordmark",lettermark:"lettermark",logomark:"logomark"}),oe.propTypes={className:a().string,fill:a().string,image:a().string,onClick:a().func,size:a().oneOf(Object.values(oe.size)),style:a().object,variant:a().oneOf(Object.values(oe.variant))},a().bool,a().string,a().node,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().func,a().func,a().bool,a().string,a().bool;var ie=["ariaHidden","children","className","inactive","material","name","size","theme"];function se(e){var t,n,r=e.ariaHidden,a=void 0===r||r,i=e.children,l=e.className,u=e.inactive,c=e.material,d=void 0===c||c,p=e.name,h=e.size,m=void 0===h?"medium":h,f=e.theme,g=te(e,ie);return o.createElement("i",ee({"aria-hidden":a,className:s()("icon",(t={},t["icon--"+m]=m,t),(n={},n["icon--"+f]=f,n),{"icon--active":!u},{"icon--inactive":u},{"icon--material":d},l)},g),p||i)}function le(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}function ue(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n)}function ce(e){return void 0===e&&(e=function(){}),function(t){if(!t.defaultPrevented){var n=!1;"Enter"===t.key&&(n=!0,e(t)),n&&t.preventDefault()}}}function de(e,t){return!!t&&("/"===e?e===t.pathname:t.pathname.includes(e))}function pe(e,t){return Object.keys(e).reduce((function(n,r){return Array.isArray(t)?t.includes(r)||(n[r]=e[r]):r!==t&&(n[r]=e[r]),n}),{})}function he(e){var t=e.hidden,n=e.LinkElementType,r=void 0===n?"a":n,a=e.links,i=void 0===a?[]:a,l=e.location,u=void 0===l?"undefined"!=typeof window&&window.location:l,c=e.onLinkClick;return o.createElement("nav",{className:s()("navbar",{"display-none":void 0!==t&&t},e.className)},o.createElement("ul",null,i.map((function(e){var t=e.to||e.path||e.href,n=de(t,u);return o.createElement("li",{key:t},o.createElement(re,ee({},pe(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||r,onClick:function(){c&&c(e)},unstyled:!0}),e.leftIcon&&o.createElement(se,{className:"margin-right-md",name:e.leftIcon,size:"small"}),e.name,e.rightIcon&&o.createElement(se,{className:"margin-left-md",name:e.rightIcon,size:"small"})))}))))}function me(e){var t=e.children,n=e.rootElement,r=void 0===n?"#root":n,a=(0,o.useState)(null),i=a[0],s=a[1];return(0,o.useEffect)((function(){s("undefined"!=typeof document?document.querySelector(r):null)}),[r]),i?(0,l.createPortal)(t,i):null}se.size=Object.freeze({inherit:"inherit",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),se.theme=Object.freeze({light:"light",dark:"dark"}),se.propTypes={ariaHidden:a().bool,children:a().node,className:a().string,inactive:a().bool,material:a().bool,name:a().string,size:a().oneOf(Object.keys(se.size)),theme:a().oneOf(Object.values(se.theme))},he.propTypes={className:a().string,hidden:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func},me.propTypes={children:a().node.isRequired,rootElement:a().string};var fe=["altText","backgroundColor","className","ElementType","foregroundColor","icon","iconName","innerPadding","rounded","size"];function ge(e){var t=e.backgroundColor,n=e.className,r=e.ElementType,a=void 0===r?"i":r,i=e.foregroundColor,l=e.icon,u=e.iconName,c=e.innerPadding,d=void 0===c?8:c,p=e.rounded,h=void 0!==p&&p,m=e.size,f=void 0===m?24:m,g=te(e,fe);return o.createElement(a,ee({},g,{className:s()("icon","social-icon",{"social-icon--rounded":h},u,n),style:{backgroundColor:t,fill:i,width:f,height:f,padding:d}}),l||K[u])}function ve(e){var t=e.backgroundColor,n=e.foregroundColor,r=e.hidden,a=e.iconInnerPadding,i=void 0===a?16:a,l=e.iconSize,u=void 0===l?32:l,c=e.iconSpacing,d=e.links,p=void 0===d?[]:d,h=e.onLinkClick,m=e.rounded,f=void 0!==m&&m,g=e.wrap,v=void 0!==g&&g;return o.createElement("div",{className:s()("social-nav-links",{"display-none":void 0!==r&&r},e.className)},o.createElement("ul",{className:s()("social-nav-links__list",{"flex-wrap":v})},p.map((function(e){var r="string"==typeof e?J[e]:e;return o.createElement("li",{className:"social-nav-links__item",key:r.key,style:{margin:c}},o.createElement(ge,{"aria-label":r.name,backgroundColor:t,ElementType:"a",foregroundColor:n||r.color,href:r.url,icon:r.icon,iconName:r.key,innerPadding:i,onClick:function(){h&&h(r)},rel:"noopener noreferrer",rounded:f,size:u,target:"_blank"}))}))))}function be(e,t){var n="undefined"!=typeof window?window.matchMedia(e):null,r=(0,o.useState)(n),a=r[0],i=r[1],s=(0,o.useState)(Boolean(a&&a.matches)),l=s[0],u=s[1];return(0,o.useEffect)((function(){"undefined"!=typeof window&&i(window.matchMedia(e))}),[e]),(0,o.useEffect)((function(){var e,n=a;return n&&le(n,"change",e=function(){u(n.matches),t&&t(n.matches)}),function(){n&&e&&ue(n,"change",e)}}),[a,t]),l}ge.propTypes={altText:a().string,backgroundColor:a().string,className:a().string,ElementType:a().elementType,foregroundColor:a().string,icon:a().element,iconName:a().oneOf(Object.keys(K)),innerPadding:a().oneOfType([a().number,a().string]),rounded:a().bool,size:a().oneOfType([a().number,a().string])},ve.propTypes={backgroundColor:a().string,className:a().string,foregroundColor:a().string,hidden:a().bool,iconInnerPadding:a().oneOfType([a().number,a().string]),iconSize:a().oneOfType([a().number,a().string]),iconSpacing:a().oneOfType([a().number,a().string]),links:a().arrayOf(G),onLinkClick:a().func,rounded:a().bool,wrap:a().bool};function ye(e){var t=(0,o.useState)(!0),n=t[0],r=t[1],a=function(){r(!1)};return(0,o.useEffect)((function(){var t=e.current;return t&&n&&(t.complete?a():le(t,"load",a)),function(){t&&ue(t,"load",a)}}),[e,n]),n}function we(e,t){void 0===e&&(e=!1),void 0===t&&(t=!0),(0,o.useEffect)((function(){if("undefined"!=typeof document)if(e){if(t){var n="undefined"!=typeof window&&"undefined"!=typeof document?(window.innerWidth||0)-(document.documentElement.clientWidth||0):0;n>0&&(document.body.style.paddingRight=n+"px")}document.body.classList.add("overflow-hidden")}else document.body.classList.remove("overflow-hidden"),t&&(document.body.style.paddingRight=null)}),[e,t])}function ke(e){var t=e.animated,n=void 0!==t&&t,r=e.className,a=e.hideSocialLinks,i=void 0===a||a,l=e.LinkElementType,u=void 0===l?"a":l,c=e.links,d=void 0===c?[]:c,p=e.location,h=void 0===p?"undefined"!=typeof window&&window.location:p,m=e.onLinkClick,f=e.rootElement,g=e.socialLinks,v=void 0===g?[]:g,b=e.theme,y=(0,o.useState)(!1),w=y[0],k=y[1];return we(w,!0),(0,o.useEffect)((function(){k(!1)}),[h]),o.createElement(o.Fragment,null,o.createElement("button",{"aria-label":w?"Close":"Open",className:"navmenu__button",onClick:function(){return k(!w)},size:"small",style:{zIndex:w?1055:void 0}},o.createElement(se,{name:w?"close":"menu",material:!0})),w&&o.createElement(me,{rootElement:f},o.createElement("div",{className:s()("navmenu",{"navmenu--open":w,"navmenu--closed":!w},{"navmenu--animated":n},r),"data-theme":b},o.createElement("div",{className:"navmenu__overlay"}),o.createElement("div",{className:"navmenu__container container"},o.createElement("div",{className:"navmenu__wrapper"},o.createElement("ul",{className:"navmenu__list"},d.map((function(e){var t=e.to||e.path||e.href,n=de(t,h);return o.createElement("li",{className:"navmenu__item",key:t},o.createElement(re,ee({},pe(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||u,onClick:function(){m&&m(e)},unstyled:!0}),e.name))}))),!i&&o.createElement(ve,{foregroundColor:"inherit",iconInnerPadding:10,iconSize:20,links:Object.values(v)}))))))}function Ee(e,t){return void 0===e&&(e="en-us"),void 0===t&&(t=e),{ios:"https://linkmaker.itunes.apple.com/images/badges/"+e+"/badge_appstore-lrg.svg",android:"https://raw.github.com/yjb94/google-play-badge-svg/master/img/"+t+"_get.svg?sanitize=true"}}function xe(e){var t=e.alt,n=void 0===t?"Download on the App Store":t,r=e.className,a=e.defaultLocale,i=void 0===a?"en-us":a,l=e.locale,u=void 0===l?"undefined"!=typeof navigator&&navigator.language||i:l,c=e.platform,d=e.width,p=void 0===d?200:d,h=e.height,m=void 0===h?p/3.375:h,f=e.target,g=void 0===f?"_blank":f,v=e.url,b=u=u.toLowerCase();-1===["zh-cn","zh-tw"].indexOf(u)&&(b=u.split(/[_-]/)[0]);var y=(0,o.useState)(Ee(u,b)),w=y[0],k=y[1];return(0,o.useLayoutEffect)((function(){k(Ee(u,b))}),[u,b]),o.createElement("a",{className:s()("app-store-badge",r),href:v,target:g,style:{width:p,height:m}},o.createElement("img",{alt:n||"",src:w[c],onError:function(){k(Ee(i,b))}}))}function Oe(e){var t,n=e.children,r=e.className,a=e.pill,i=void 0!==a&&a,l=e.type,u=void 0===l?"solid":l;return o.createElement("div",{className:s()("badge",(t={},t["badge--"+u]=u,t),{"badge--pill":i},r)},n)}ke.propTypes={animated:a().bool,className:a().string,hideSocialLinks:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func,rootElement:a().string,socialLinks:a().arrayOf(G),theme:a().string},a().bool,a().string,a().bool,a().bool,a().bool,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().object,a().oneOf(Object.values(oe.size)),a().oneOf(Object.values(oe.variant)),a().func,a().func,a().func,a().string,a().arrayOf(G),a().bool,a().string,a().bool,xe.platform=Object.freeze({ios:"ios",android:"android"}),xe.propTypes={alt:a().string,className:a().string,defaultLocale:a().string,locale:a().string,platform:a().oneOf(Object.values(xe.platform)).isRequired,width:a().number,height:a().number,target:a().string,url:a().string.isRequired},a().string,a().oneOf(["left","right"]),a().elementType,a().arrayOf(a().shape(re.propTypes)),a().string,Oe.type=Object.freeze({solid:"solid",outline:"outline"}),Oe.propTypes={children:a().node,className:a().string,pill:a().bool,type:a().oneOf(Object.values(Oe.type))};var Ce=["children","className","color","icon","iconElement","iconName","onClick","shape","size","style","styles"];function Se(e){var t,n,r,a,i=e.children,l=e.className,u=e.color,c=void 0===u?"default":u,d=e.icon,p=e.iconElement,h=e.iconName,m=e.onClick,f=e.shape,g=void 0===f?"rounded-corners":f,v=e.size,b=void 0===v?"small":v,y=e.style,w=void 0===y?"solid":y,k=e.styles,E=te(e,Ce);return o.createElement("button",ee({className:s()("btn",(t={},t["btn--"+c]=c,t),(n={},n["btn--"+g]=g,n),(r={},r["btn--"+w]=w,r),(a={},a["btn--"+b]=b,a),{"btn--icon-only":"only"===d},l),onClick:m,style:k},E),"left"===d&&o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-right-md"},p||o.createElement(se,{name:h,size:"inherit"})),"only"===d?o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper"},o.createElement(se,{name:h,size:"inherit"})):i,"right"===d&&o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-left-md"},p||o.createElement(se,{name:h,size:"inherit"})))}function _e(e){var t,n=e.children,r=e.className,a=e.layout,i=void 0===a?"horizontal":a,l=e.spacing,u=void 0===l||l;return o.createElement("div",{className:s()("btn-group",(t={},t["btn-group--"+i]=i,t),{"btn-group--spacing":u},r)},n)}Se.color=Object.freeze({default:"default",primary:"primary",secondary:"secondary",tertiary:"tertiary",success:"success",danger:"danger",warning:"warning",info:"info"}),Se.shape=Object.freeze({square:"square",roundedCorners:"rounded-corners",rounded:"rounded",circle:"circle"}),Se.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Se.style=Object.freeze({solid:"solid",outline:"outline",text:"text",none:"unstyled"}),Se.propTypes={children:a().node,className:a().string,color:a().oneOf(Object.values(Se.color)),icon:a().oneOf(["left","right","only"]),iconElement:a().element,iconName:a().string,onClick:a().func,shape:a().oneOf(Object.values(Se.shape)),size:a().oneOf(Object.values(Se.size)),style:a().oneOf(Object.values(Se.style)),styles:a().object},_e.layout=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),_e.propTypes={children:a().node,className:a().string,layout:a().oneOf(Object.values(_e.layout)),spacing:a().bool};var Te=["children","className","external","history","link","linkTarget","onClick"];function Ae(e){var t=e.children,n=e.className,r=e.external,a=e.history,i=e.link,l=e.linkTarget,u=void 0===l?"_blank":l,c=e.onClick,d=te(e,Te);return o.createElement("div",ee({},d,{className:s()(n,"cursor-pointer"),onClick:function(e){a&&i&&!r?a.push(i):"undefined"!=typeof window&&i&&r&&window.open(i,u),c&&c(e)},onKeyDown:ce(c),role:"button",tabIndex:"0"}),t)}Ae.propTypes={children:a().node,className:a().string,external:a().bool,history:a().shape({push:a().func.isRequired}),link:a().string,linkTarget:a().string,onClick:a().func},a().node,a().string.isRequired;a().oneOfType([a().bool,a().number,a().string,a().shape({offset:a().oneOfType([a().number,a().string]),order:a().oneOfType([a().number,a().string]),size:a().oneOfType([a().number,a().string])})]);a().node,a().string,a().oneOf(["sm","md","lg","none"]);var Fe=o.forwardRef((function(e,t){var n=e.onSubmit,r=void 0===n?function(){}:n;return o.createElement("form",{className:s()("contact-form",e.className),onSubmit:r,ref:t},o.createElement("input",{"aria-label":"Name",id:"contactName",name:"name",placeholder:"Name",required:!0,type:"text"}),o.createElement("input",{"aria-label":"Email",id:"contactEmail",name:"email",placeholder:"Email",required:!0,type:"email"}),o.createElement("textarea",{"aria-label":"Message",id:"contactMessage",name:"message",placeholder:"Message",required:!0}),o.createElement("input",{"aria-label":"Send",id:"contactSubmit",type:"submit",value:"Send"}))}));function Ne(e){var t=e.loading,n=e.size;return o.createElement("div",{"aria-hidden":!0,className:s()("loading-spinner",{loading:void 0===t||t},void 0===n?"medium":n,e.className)},o.createElement("div",{className:"loading-spinner__animation"},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null),o.createElement("div",null)))}Fe.displayName="ContactForm",Fe.propTypes={className:a().string,onSubmit:a().func},a().node,a().string,a().oneOfType([a().bool,a().oneOf(["sm","md","lg","xl","fluid"])]),a().string,a().string,a().string,a().func,a().string,a().string,Ne.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Ne.propTypes={className:a().string,loading:a().bool,size:a().oneOf(Object.values(Ne.size))};var Me=Object.freeze({xs:{width:320,height:180},extraSmall:{width:320,height:180},sm:{width:480,height:270},small:{width:480,height:270},md:{width:640,height:360},medium:{width:640,height:360},lg:{width:960,height:540},large:{width:960,height:540},xl:{width:1280,height:720},extraLarge:{width:1280,height:720}});function Pe(e){return null==e||"string"==typeof e&&(e.endsWith("%")||e.endsWith("px"))?e:e+"px"}function ze(e){var t=e.allowFullScreen,n=void 0===t||t,r=e.className,a=e.frameBorder,i=void 0===a?"0":a,l=e.height,u=e.id,c=void 0===u?"video-player":u,d=e.scrolling,p=void 0===d?"no":d,h=e.size,m=e.src,f=e.title,g=void 0===f?"Video Player":f,v=e.width,b=(0,o.useRef)(),y=ye(b),w="undefined"!=typeof navigator&&!navigator.onLine,k=v||h&&Me[h].width,E=l||h&&Me[h].height;return o.createElement("div",{className:s()("embedded-video",{loading:y},h,r),style:{width:Pe(k),height:Pe(E)}},o.createElement("div",{className:s()("embedded-video__wrapper","transition","fade-in",{visible:!y})},o.createElement("iframe",{allowFullScreen:n,frameBorder:i,height:E||"100%",id:c,ref:b,scrolling:p,src:m,title:g,width:k||"100%"})),y&&!w&&o.createElement(Ne,null))}ze.size=Me,ze.propTypes={allowFullScreen:a().bool,className:a().string,frameBorder:a().string,height:a().oneOfType([a().string,a().number]),id:a().string,scrolling:a().string,size:a().oneOf(Object.keys(ze.size)),src:a().string.isRequired,title:a().string,width:a().oneOfType([a().string,a().number])};a().string.isRequired,a().string,a().string,a().bool,a().bool,a().string;var Le=["autoplay","captions","className","hideBranding","hideControls","hideInfo","hideRelated","id","muted","origin","secure","startTime","title","videoId"];function je(e){var t=e.autoplay,n=void 0!==t&&t,r=e.captions,a=void 0!==r&&r,i=e.className,l=e.hideBranding,u=void 0!==l&&l,c=e.hideControls,d=void 0!==c&&c,p=e.hideInfo,h=void 0!==p&&p,m=e.hideRelated,f=void 0===m||m,g=e.id,v=void 0===g?"youtube-player":g,b=e.muted,y=void 0!==b&&b,w=e.origin,k=e.secure,E=void 0===k||k,x=e.startTime,O=e.title,C=void 0===O?"YouTube":O,S=e.videoId,_=te(e,Le),T="enablejsapi=1";T+="&origin="+w,f&&(T+="&rel=0"),d&&(T+="&controls=0"),h&&(T+="&showinfo=0"),u&&(T+="&modestbranding=1"),a&&(T+="&cc_load_policy=1"),n&&(T+="&autoplay=1"),y&&(T+="&mute=1"),x&&(T+="&start="+x);var A=E?"https":"http";return o.createElement(ze,ee({className:s()("youtube",i),id:v,src:A+"://www.youtube.com/embed/"+S+"?"+T,title:C},_))}je.propTypes={autoplay:a().bool,captions:a().bool,className:a().string,hideBranding:a().bool,hideControls:a().bool,hideInfo:a().bool,hideRelated:a().bool,id:a().string,muted:a().bool,origin:a().string.isRequired,secure:a().bool,startTime:a().oneOf([a().number,a().string]),title:a().string,videoId:a().string.isRequired};var Ie=["className","disabled","icon","iconAlignment","onBlur","onChange","onFocus","placeholder","size","type","value"];function Re(e){var t,n,r=e.className,a=e.disabled,i=e.icon,l=e.iconAlignment,u=void 0===l?"right":l,c=e.onBlur,d=void 0===c?function(){}:c,p=e.onChange,h=void 0===p?function(){}:p,m=e.onFocus,f=void 0===m?function(){}:m,g=e.placeholder,v=e.size,b=e.type,y=e.value,w=te(e,Ie),k=(0,o.useState)(!1),E=k[0],x=k[1];return o.createElement("div",{className:s()("input-wrapper",(t={},t["input-wrapper--"+v]=v,t),(n={},n["input-wrapper--icon-"+u]=i&&u,n),{focus:E,disabled:a},r)},o.createElement("input",ee({className:"input-wrapper__input",disabled:a,onBlur:function(){x(!1),d()},onChange:h,onFocus:function(){x(!0),f()},placeholder:g,type:b,value:y},w)),i&&o.createElement(se,{className:"input-wrapper__icon",name:i,size:"md"}))}function De(e){var t=e.alt,n=e.animated,r=void 0===n||n,a=e.className,i=e.height,l=e.imageClassName,u=e.ImageElementType,c=void 0===u?"img":u,d=e.imageProps,p=void 0===d?{}:d,h=e.onLoad,m=void 0===h?function(){}:h,f=e.placeholder,g=e.placeholderClassName,v=e.placeholderProps,b=void 0===v?{}:v,y=e.showLoadingSpinner,w=void 0!==y&&y,k=e.src,E=e.width,x=(0,o.useRef)(),O=function(e,t){void 0===t&&(t=function(){});var n=!ye(e);return(0,o.useEffect)((function(){n&&t()}),[n,t]),n}(x,m);return o.createElement("picture",{className:s()("progressive-image",{"progressive-image--loaded":O},{"progressive-image--animated":r},{"progressive-image--no-placeholder":!f},a)},o.createElement(c,ee({},p,{alt:p.alt||t,className:s()("progressive-image__source","img-fluid",l,p.className),width:E||p.width,height:i||p.height,ref:x,src:k})),f&&o.createElement(c,ee({},b,{alt:b.alt||t,className:s()("progressive-image__placeholder","img-fluid",g,b.className),width:E||b.width||p.width,height:i||b.height||p.height,src:f})),w&&!O&&o.createElement(Ne,null))}function $e(e){return"string"==typeof e?e:e.src}function Be(e){return e?e+"px":void 0}function qe(e,t,n){return"repeat("+(e||"auto-fit")+", minmax("+(Be(t)||0)+", "+(Be(n)||"1fr")+"))"}function He(e){var t=e.animated,n=void 0!==t&&t,r=e.animation,a=void 0===r?"fade-in-up":r,i=e.className,l=e.columns,u=e.fullWidthFirstItem,c=void 0!==u&&u,d=e.images,p=void 0===d?[]:d,h=e.maxWidth,m=e.minWidth,f=(0,o.useState)(!1),g=f[0],v=f[1],b=(0,o.useState)(0),y=b[0],w=b[1];return o.createElement("div",{className:s()("image-gallery",i)},o.createElement("div",{className:"image-gallery__thumbnails",style:{gridTemplateColumns:qe(l,m,h)}},p.map((function(e,t){var r,i="object"==typeof e,l=i?e.src:e,u=i&&e.id||l;return o.createElement("button",{"aria-label":"Image Thumbnail",className:s()("image-gallery__thumbnail",{"image-gallery__thumbnail--full-width":0===t&&c},(r={"animation-short":n},r["animation-delay-"+(t+1)]=n,r[a]=n,r),i&&e.className),key:u,onClick:function(){w(t),v(!0)}},o.createElement(De,{imageProps:i?pe(e,"className"):{},src:l}))}))),g&&o.createElement(I,{enableZoom:!1,mainSrc:$e(p[y]),nextSrc:$e(p[(y+1)%p.length]),prevSrc:$e(p[(y+p.length-1)%p.length]),onCloseRequest:function(){v(!1)},onMovePrevRequest:function(){w((y+p.length-1)%p.length)},onMoveNextRequest:function(){w((y+1)%p.length)},wrapperClassName:"image-gallery__lightbox"}))}function Ye(e){var t,n=e.backgroundColor,r=e.children,a=e.className,i=e.size,l=void 0===i?"medium":i,u=e.style,c=e.theme,d=e.transparent,p=void 0!==d&&d;return o.createElement("div",{className:s()("page-banner",(t={},t["page-banner--"+l]=l,t),{"page-banner--transparent":p},a),"data-theme":c,style:ee({backgroundColor:n},u)},r)}Re.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Re.iconAlignment=Object.freeze({left:"left",right:"right"}),Re.propTypes={className:a().string,disabled:a().bool,icon:a().string,iconAlignment:a().oneOf(Object.values(Re.iconAlignment)),onBlur:a().func,onChange:a().func,onFocus:a().func,placeholder:a().string,size:a().oneOf(Object.values(Re.size)),type:a().string,value:a().any},De.propTypes={alt:a().string,animated:a().bool,className:a().string,height:a().oneOfType([a().string,a().number]),imageClassName:a().string,ImageElementType:a().elementType,imageProps:a().object,onLoad:a().func,placeholder:a().string,placeholderClassName:a().string,placeholderProps:a().object,showLoadingSpinner:a().bool,src:a().string,width:a().oneOfType([a().string,a().number])},He.propTypes={animated:a().bool,animation:a().string,className:a().string,columns:a().number,fullWidthFirstItem:a().bool,images:a().arrayOf(a().oneOfType([a().shape({alt:a().string,className:a().string,id:a().string,src:a().string.isRequired}),a().string])),maxWidth:a().number,minWidth:a().number},a().node,a().string,a().element,a().oneOf(["left","right"]),a().string,a().func,a().bool,a().string,a().string,a().string,Ye.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),Ye.propTypes={backgroundColor:a().string,children:a().node,className:a().string,size:a().oneOf(Object.values(Ye.size)),style:a().object,theme:a().string,transparent:a().bool},a().string,a().number,a().func,a().number.isRequired,a().node,a().string,a().oneOf(["sm","md","lg","none"]);a().string,a().number,a().bool,a().func,a().func,a().string,a().bool,a().string,a().node,a().bool,a().object,a().string,a().string;var Xe=["children","className","link","LinkElementType","primaryColor","secondaryColor","size","url"];function Ze(e){var t=e.children,n=e.className,r=e.link,a=e.LinkElementType,i=e.primaryColor,l=e.secondaryColor,u=e.size,c=void 0===u?Se.size.medium:u,d=e.url,p=te(e,Xe),h="string"==typeof r?J[r]:r,m=i||h.color;return o.createElement(re,{ElementType:a,external:!0,to:d||h.url,unstyled:!0},o.createElement(Se,ee({className:s()("social-button",h.key,n),icon:"left",iconElement:h.icon&&o.createElement(ge,{"aria-hidden":!0,ElementType:"i",icon:h.icon,iconName:h.key,innerPadding:0,size:"100%"}),size:c,styles:{"--btn-color-primary":m,"--btn-color-secondary":l,"--btn-color-emphasis":m},tabIndex:-1},p),t||h.name))}function Ue(e){var t,n=e.alignItems,r=e.children,a=e.direction,i=void 0===a?"column":a,l=e.justifyContent,u=e.reversed,c=void 0!==u&&u,d=e.wrap;return o.createElement("div",{className:s()("display-flex",{"flex-row":"row"===i&&!c,"flex-row-reverse":"row"===i&&c,"flex-column":"column"===i&&!c,"flex-column-reverse":"column"===i&&c,"flex-wrap":void 0!==d&&d},(t={},t["justify-content-"+l]=l,t["align-items-"+n]=n,t))},r)}Ze.shape=Se.shape,Ze.size=Se.size,Ze.style=Se.style,Ze.propTypes={children:a().node,className:a().string,link:G.isRequired,LinkElementType:a().elementType,primaryColor:a().string,secondaryColor:a().string,size:a().oneOf(Object.values(Se.size)),url:a().string},Ue.direction=Object.freeze({row:"row",column:"column"}),Ue.alignItems=Object.freeze({start:"start",end:"end",center:"center",stretch:"stretch",baseline:"baseline"}),Ue.justifyContent=Object.freeze({start:"start",end:"end",center:"center",between:"between",around:"around",evenly:"evenly"}),Ue.propTypes={alignItems:a().oneOf(Object.values(Ue.alignItems)),children:a().node,direction:a().oneOf(Object.values(Ue.direction)),justifyContent:a().oneOf(Object.values(Ue.justifyContent)),reversed:a().bool,wrap:a().bool};a().oneOf(["inherit","transparent","black","white","foreground","foreground-muted","foreground-subtle","background","surface-0","surface-1","surface-2","surface-3","surface-4","surface-5","surface-6","surface-7","surface-8","surface-9","border","default","primary","secondary","tertiary","success","danger","warning","info"]),a().oneOf([1,2,3,4,5,6,"1","2","3","4","5","6"]),a().oneOf(["xxxl","xxl","xl","lg","md","sm","xs","xxs","xxxs"]),a().oneOf([100,200,300,400,500,600,700,800,900,"100","200","300","400","500","600","700","800","900"]),a().oneOf(["0","none","xs","sm","md","lg","xl","xxl","xxxl","2xl","2xxl","2xxxl","1em","2em","3em","4em","5em","6em","7em","8em"]);a().bool,a().node,a().string,a().bool,a().elementType;a().string,a().bool,a().string,a().node,a().string,a().elementType,a().oneOfType([a().string,a().number]),a().string,a().string,a().elementType,a().object,a().number,a().string,a().string,a().object,a().bool,a().bool,a().object,a().oneOfType([a().string,a().number]),a().bool,a().node,a().string,a().bool,a().bool,a().bool,a().bool,a().bool,a().elementType},2911:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},3433:function(){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),p=l(a+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=r(/\((?:[^()]|<>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[f,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),b=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,b]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,m,b]),k=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,v,b]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,S=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,E]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,f]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,h]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(h),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,f,E,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=C+"|"+O,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),A=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,A]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[A]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,M]),L=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,M]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:I(z,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:I(j,L)}],char:{pattern:RegExp(O),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},7171:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},5489:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},5650:function(){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},5014:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=E.value.length,E=E.next){var O=E.value;if(t.length>e.length)return;if(!(O instanceof o)){var C,S=1;if(b){if(!(C=i(k,x,e,v))||C.index>=e.length)break;var _=C.index,T=C.index+C[0].length,A=x;for(A+=E.value.length;_>=A;)A+=(E=E.next).value.length;if(x=A-=E.value.length,E.value instanceof o)continue;for(var F=E;F!==t.tail&&(Ad.reach&&(d.reach=z);var L=E.prev;if(M&&(L=u(t,L,M),x+=M.length),c(t,L,S),E=u(t,L,new o(p,g?a.tokenize(N,g):N,y,N)),P&&u(t,E,P),S>1){var j={cause:p+","+m,reach:z};s(e,t,n,E.prev,x,j),d&&j.reach>d.reach&&(d.reach=j.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",a="loaded",o="pre[data-src]:not(["+t+'="'+a+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),r.hooks.add("before-sanity-check",(function(i){var s=i.element;if(s.matches(o)){i.code="",s.setAttribute(t,n);var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var u=s.getAttribute("data-src"),c=i.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d}r.util.setLanguage(l,c),r.util.setLanguage(s,c);var p=r.plugins.autoloader;p&&p.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(u,(function(e){s.setAttribute(t,a);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],a=t[3];return r?a?[n,Number(a)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var o=e.split(/\r\n?|\n/g),i=n[0],u=null==n[1]?o.length:n[1];i<0&&(i+=o.length),i=Math.max(0,Math.min(i-1,o.length)),u<0&&(u+=o.length),u=Math.max(0,Math.min(u,o.length)),e=o.slice(i,u).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(i+1))}l.textContent=e,r.highlightElement(l)}),(function(e){s.setAttribute(t,"failed"),l.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(o),a=0;t=n[a++];)r.highlightElement(t)}};var i=!1;r.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},1502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t0&&0===(b-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":a(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}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),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName,o=e.parentSelector,i=o&&o().ownerDocument||document;a&&d.add(i.body,a),r&&d.add(i.getElementsByTagName("html")[0],r),n&&(b+=1,c.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,a=e.overlayClassName,o=e.defaultStyles,i=e.children,s=n?{}:o.content,l=a?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,i);return this.props.overlayElement(u,d)}}]),t}(i.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default},1864:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=u(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){a.value.setAttribute("aria-hidden","true")}}catch(i){n=!0,r=i}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=u(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){a.value.removeAttribute("aria-hidden")}}catch(i){n=!0,r=i}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,a=n(1617),o=(r=a)&&r.__esModule?r:{default:r},i=n(4884);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},4061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},2788:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var o=document.body;for(var i in r)a(o,r[i]);n={},r={}},t.log=function(){0};var n={},r={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),a.add(e)}));var a,o},t.remove=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&a.remove(e)}));var a,o}},8573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,a=n(1601),o=(r=a)&&r.__esModule?r:{default:r};var i=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},3198:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},4884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,a=n(3029);var o=((r=a)&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=i},4557:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=i();if(e===u){if(!a)return;r=l}l!==u||a||(r=s);s===u&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(u);d>-1&&(d+=a?-1:1);if(void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()};var r,a=n(1601),o=(r=a)&&r.__esModule?r:{default:r};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},1601:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",r="contents",a=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var a=window.getComputedStyle(e),o=a.getPropertyValue("display");return t?o!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,a):o===n}catch(i){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(a.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},2406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(1502),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},1617:function(e){"use strict";var t=function(){};e.exports=t}}]); -//# sourceMappingURL=e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js.map \ No newline at end of file diff --git a/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js.map b/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js.map deleted file mode 100644 index cdb4d02..0000000 --- a/e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"e803359b344906a6cdf2475d3c870c36780fb1b2-7deb9e5953f0dcbeb38c.js","mappings":";8fA+BO,SAASA,EAAWC,EAAOC,QACd,IAAZA,IAAsBA,EAAU,CAAC,GACrC,IAAIC,EAaR,SAA4BF,GAExB,GAAIA,GAAsB,MAAbA,EAAM,IAA2B,MAAbA,EAAM,GACnC,OAAOA,EAAMG,OAAO,GAExB,OAAOH,CACX,CAnBqBI,CAAmBJ,GACpC,GAXG,SAAyBA,EAAOK,GAMnC,YAL0B,IAAf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ME,iBACpDC,SAAUrvB,IAAAA,KACVynB,KAAMznB,IAAAA,MC5DsBA,IAAAA,MAAgB,CAC5C,UACA,cACA,QACA,QACA,aACA,mBACA,oBACA,aACA,YACA,YACA,YACA,YACA,YACA,YACA,YACA,YACA,YACA,YACA,SACA,UACA,UACA,YACA,WACA,UACA,SACA,UACA,SAGiCA,IAAAA,MAAgB,CACjD,EACA,EACA,EACA,EACA,EACA,EACA,IACA,IACA,IACA,IACA,IACA,MAG+BA,IAAAA,MAAgB,CAC/C,OACA,MACA,KACA,KACA,KACA,KACA,KACA,MACA,SAGiCA,IAAAA,MAAgB,CACjD,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,QAG6BA,IAAAA,MAAgB,CAC7C,IACA,OACA,KACA,KACA,KACA,KACA,KACA,MACA,OACA,MACA,OACA,QACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,QC9DMA,IAAAA,KACIA,IAAAA,KACCA,IAAAA,OAEHA,IAAAA,KAIHA,IAAAA,YCoCAA,IAAAA,OACKA,IAAAA,KACCA,IAAAA,OACDA,IAAAA,KACCA,IAAAA,OACEA,IAAAA,YACLA,IAAAA,UAAoB,CAACA,IAAAA,OAAkBA,IAAAA,SACxCA,IAAAA,OACSA,IAAAA,OACEA,IAAAA,YACNA,IAAAA,OACLA,IAAAA,OACMA,IAAAA,OACSA,IAAAA,OACJA,IAAAA,OACTA,IAAAA,KACDA,IAAAA,KACDA,IAAAA,OACAA,IAAAA,UAAoB,CAACA,IAAAA,OAAkBA,IAAAA,SCpDxCA,IAAAA,KACIA,IAAAA,KACCA,IAAAA,OAEFA,IAAAA,KACAA,IAAAA,KACDA,IAAAA,KAGAA,IAAAA,KAEEA,IAAAA,KACLA,IAAAA,gCC5DP,OAOC,WACA,aAEA,IAAI+vB,EAAS,CAAC,EAAEnvB,eAGhB,SAASovB,IAGR,IAFA,IAAIC,EAAU,GAEL3vB,EAAI,EAA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2C1B6F,EAAOC,QAAU9F","sources":["webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/universal-cookie/es6/utils.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/universal-cookie/es6/Cookies.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-cookie/es6/Cookies.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-cookie/es6/CookiesContext.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-image-lightbox/dist/index.es.js","webpack://@adamgraham/portfolio/../src/svg/icons.js","webpack://@adamgraham/portfolio/../src/socialLinks.js","webpack://@adamgraham/portfolio/../src/svg/logo.js","webpack://@adamgraham/portfolio/../src/components/Link.js","webpack://@adamgraham/portfolio/../src/components/Logo.js","webpack://@adamgraham/portfolio/../src/components/AppFooter.js","webpack://@adamgraham/portfolio/../src/components/Icon.js","webpack://@adamgraham/portfolio/../src/utils/debounce.js","webpack://@adamgraham/portfolio/../src/utils/events.js","webpack://@adamgraham/portfolio/../src/utils/location.js","webpack://@adamgraham/portfolio/../src/utils/omit.js","webpack://@adamgraham/portfolio/../src/components/NavBar.js","webpack://@adamgraham/portfolio/../src/components/ReactPortal.js","webpack://@adamgraham/portfolio/../src/components/SocialIcon.js","webpack://@adamgraham/portfolio/../src/components/SocialNavLinks.js","webpack://@adamgraham/portfolio/../src/hooks/useMediaQuery.js","webpack://@adamgraham/portfolio/../src/hooks/useDocumentTitle.js","webpack://@adamgraham/portfolio/../src/hooks/useLoading.js","webpack://@adamgraham/portfolio/../src/hooks/useLocalStorage.js","webpack://@adamgraham/portfolio/../src/hooks/useModalOverlay.js","webpack://@adamgraham/portfolio/../src/utils/scrolling.js","webpack://@adamgraham/portfolio/../src/components/NavMenu.js","webpack://@adamgraham/portfolio/../src/components/AppStoreBadge.js","webpack://@adamgraham/portfolio/../src/components/Badge.js","webpack://@adamgraham/portfolio/../src/components/AppHeader.js","webpack://@adamgraham/portfolio/../src/components/AppUtilityBar.js","webpack://@adamgraham/portfolio/../src/components/Button.js","webpack://@adamgraham/portfolio/../src/components/ButtonGroup.js","webpack://@adamgraham/portfolio/../src/components/ClickableDiv.js","webpack://@adamgraham/portfolio/../src/components/CodeBlock.js","webpack://@adamgraham/portfolio/../src/components/Col.js","webpack://@adamgraham/portfolio/../src/components/ContactForm.js","webpack://@adamgraham/portfolio/../src/components/LoadingSpinner.js","webpack://@adamgraham/portfolio/../src/components/Container.js","webpack://@adamgraham/portfolio/../src/components/CookieConsent.js","webpack://@adamgraham/portfolio/../src/components/EmbeddedVideo.js","webpack://@adamgraham/portfolio/../src/components/EmbeddedTwitch.js","webpack://@adamgraham/portfolio/../src/components/EmbeddedYouTube.js","webpack://@adamgraham/portfolio/../src/components/Input.js","webpack://@adamgraham/portfolio/../src/components/ProgressiveImage.js","webpack://@adamgraham/portfolio/../src/components/ImageGallery.js","webpack://@adamgraham/portfolio/../src/components/PageBanner.js","webpack://@adamgraham/portfolio/../src/components/Modal.js","webpack://@adamgraham/portfolio/../src/components/Pagination.js","webpack://@adamgraham/portfolio/../src/components/Row.js","webpack://@adamgraham/portfolio/../src/components/SearchInput.js","webpack://@adamgraham/portfolio/../src/components/SideDrawer.js","webpack://@adamgraham/portfolio/../src/components/SocialButton.js","webpack://@adamgraham/portfolio/../src/components/Stack.js","webpack://@adamgraham/portfolio/../src/props.js","webpack://@adamgraham/portfolio/../src/components/Text.js","webpack://@adamgraham/portfolio/../src/components/Thumbnail.js","webpack://@adamgraham/portfolio/../src/components/Title.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/classnames/index.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/cookie/index.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/exenv/index.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/components/prism-clike.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/components/prism-csharp.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/components/prism-css.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/components/prism-javascript.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/components/prism-markup.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/prismjs/prism.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/components/Modal.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/components/ModalPortal.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/ariaAppHider.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/bodyTrap.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/classList.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/focusManager.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/portalOpenInstances.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/safeHTMLElement.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/scopeTab.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/helpers/tabbable.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/react-modal/lib/index.js","webpack://@adamgraham/portfolio/../../Zigurous/Web/zigurous.com/react-components/node_modules/warning/warning.js"],"sourcesContent":["import * as cookie from 'cookie';\r\nexport function hasDocumentCookie() {\r\n // Can we get/set cookies on document.cookie?\r\n return typeof document === 'object' && typeof document.cookie === 'string';\r\n}\r\nexport function cleanCookies() {\r\n document.cookie.split(';').forEach(function (c) {\r\n document.cookie = c\r\n .replace(/^ +/, '')\r\n .replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/');\r\n });\r\n}\r\nexport function parseCookies(cookies, options) {\r\n if (typeof cookies === 'string') {\r\n return cookie.parse(cookies, options);\r\n }\r\n else if (typeof cookies === 'object' && cookies !== null) {\r\n return cookies;\r\n }\r\n else {\r\n return {};\r\n }\r\n}\r\nexport function isParsingCookie(value, doNotParse) {\r\n if (typeof doNotParse === 'undefined') {\r\n // We guess if the cookie start with { or [, it has been serialized\r\n doNotParse =\r\n !value || (value[0] !== '{' && value[0] !== '[' && value[0] !== '\"');\r\n }\r\n return !doNotParse;\r\n}\r\nexport function readCookie(value, options) {\r\n if (options === void 0) { options = {}; }\r\n var cleanValue = cleanupCookieValue(value);\r\n if (isParsingCookie(cleanValue, options.doNotParse)) {\r\n try {\r\n return JSON.parse(cleanValue);\r\n }\r\n catch (e) {\r\n // At least we tried\r\n }\r\n }\r\n // Ignore clean value if we failed the deserialization\r\n // It is not relevant anymore to trim those values\r\n return value;\r\n}\r\nfunction cleanupCookieValue(value) {\r\n // express prepend j: before serializing a cookie\r\n if (value && value[0] === 'j' && value[1] === ':') {\r\n return value.substr(2);\r\n }\r\n return value;\r\n}\r\n","var __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nimport * as cookie from 'cookie';\r\nimport { hasDocumentCookie, parseCookies, readCookie } from './utils';\r\nvar Cookies = /** @class */ (function () {\r\n function Cookies(cookies, options) {\r\n var _this = this;\r\n this.changeListeners = [];\r\n this.HAS_DOCUMENT_COOKIE = false;\r\n this.cookies = parseCookies(cookies, options);\r\n new Promise(function () {\r\n _this.HAS_DOCUMENT_COOKIE = hasDocumentCookie();\r\n }).catch(function () { });\r\n }\r\n Cookies.prototype._updateBrowserValues = function (parseOptions) {\r\n if (!this.HAS_DOCUMENT_COOKIE) {\r\n return;\r\n }\r\n this.cookies = cookie.parse(document.cookie, parseOptions);\r\n };\r\n Cookies.prototype._emitChange = function (params) {\r\n for (var i = 0; i < this.changeListeners.length; ++i) {\r\n this.changeListeners[i](params);\r\n }\r\n };\r\n Cookies.prototype.get = function (name, options, parseOptions) {\r\n if (options === void 0) { options = {}; }\r\n this._updateBrowserValues(parseOptions);\r\n return readCookie(this.cookies[name], options);\r\n };\r\n Cookies.prototype.getAll = function (options, parseOptions) {\r\n if (options === void 0) { options = {}; }\r\n this._updateBrowserValues(parseOptions);\r\n var result = {};\r\n for (var name_1 in this.cookies) {\r\n result[name_1] = readCookie(this.cookies[name_1], options);\r\n }\r\n return result;\r\n };\r\n Cookies.prototype.set = function (name, value, options) {\r\n var _a;\r\n if (typeof value === 'object') {\r\n value = JSON.stringify(value);\r\n }\r\n this.cookies = __assign(__assign({}, this.cookies), (_a = {}, _a[name] = value, _a));\r\n if (this.HAS_DOCUMENT_COOKIE) {\r\n document.cookie = cookie.serialize(name, value, options);\r\n }\r\n this._emitChange({ name: name, value: value, options: options });\r\n };\r\n Cookies.prototype.remove = function (name, options) {\r\n var finalOptions = (options = __assign(__assign({}, options), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 }));\r\n this.cookies = __assign({}, this.cookies);\r\n delete this.cookies[name];\r\n if (this.HAS_DOCUMENT_COOKIE) {\r\n document.cookie = cookie.serialize(name, '', finalOptions);\r\n }\r\n this._emitChange({ name: name, value: undefined, options: options });\r\n };\r\n Cookies.prototype.addChangeListener = function (callback) {\r\n this.changeListeners.push(callback);\r\n };\r\n Cookies.prototype.removeChangeListener = function (callback) {\r\n var idx = this.changeListeners.indexOf(callback);\r\n if (idx >= 0) {\r\n this.changeListeners.splice(idx, 1);\r\n }\r\n };\r\n return Cookies;\r\n}());\r\nexport default Cookies;\r\n","import Cookies from 'universal-cookie';\r\nexport default Cookies;\r\n","import * as React from 'react';\r\nimport Cookies from './Cookies';\r\nvar CookiesContext = React.createContext(new Cookies());\r\nexport var Provider = CookiesContext.Provider, Consumer = CookiesContext.Consumer;\r\nexport default CookiesContext;\r\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n/**\n * Placeholder for future translate functionality\n */\nfunction translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!str) {\n return '';\n }\n\n var translated = str;\n\n if (replaceStrings) {\n Object.keys(replaceStrings).forEach(function (placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n }\n\n return translated;\n}\nfunction getWindowWidth() {\n return typeof global.window !== 'undefined' ? global.window.innerWidth : 0;\n}\nfunction getWindowHeight() {\n return typeof global.window !== 'undefined' ? global.window.innerHeight : 0;\n}\n\nvar isCrossOriginFrame = function isCrossOriginFrame() {\n try {\n return global.window.location.hostname !== global.window.parent.location.hostname;\n } catch (e) {\n return true;\n }\n}; // Get the highest window context that isn't cross-origin\n// (When in an iframe)\n\n\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n\n // If we reached the top level, return self\n if (self === global.window.top) {\n return self;\n } // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n\n\n if (!isCrossOriginFrame()) {\n return getHighestSafeWindowContext(self.parent);\n } // If a different origin, we consider the current level\n // as the top reachable one\n\n\n return self;\n}\n\n// Min image zoom level\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\n\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\n\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\n\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\n\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\n\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\n\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\n\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\n\nvar MIN_SWIPE_DISTANCE = 200;\n\nvar ReactImageLightbox = /*#__PURE__*/function (_Component) {\n _inherits(ReactImageLightbox, _Component);\n\n var _super = _createSuper(ReactImageLightbox);\n\n function ReactImageLightbox(props) {\n var _this;\n\n _classCallCheck(this, ReactImageLightbox);\n\n _this = _super.call(this, props);\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n\n _this.outerEl = /*#__PURE__*/React.createRef();\n _this.zoomInBtn = /*#__PURE__*/React.createRef();\n _this.zoomOutBtn = /*#__PURE__*/React.createRef();\n _this.caption = /*#__PURE__*/React.createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_this));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_this));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_this));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_this));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_this));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_this));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_this));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_this));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_this));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_this));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_this));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_this));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_this));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_this));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_this));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_this)); // Timeouts - always clear it before umount\n\n _this.timeouts = []; // Current action\n\n _this.currentAction = ACTION_NONE; // Events source\n\n _this.eventsSource = SOURCE_ANY; // Empty pointers list\n\n _this.pointerList = []; // Prevent inner close\n\n _this.preventInnerClose = false;\n _this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n\n _this.keyPressed = false; // Used to store load state / dimensions of images\n\n _this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n\n _this.lastKeyDownTime = 0; // Used for debouncing window resize event\n\n _this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n\n _this.wheelActionTimeout = null;\n _this.resetScrollTimeout = null;\n _this.scrollX = 0;\n _this.scrollY = 0; // Used in panning zoomed images\n\n _this.moveStartX = 0;\n _this.moveStartY = 0;\n _this.moveStartOffsetX = 0;\n _this.moveStartOffsetY = 0; // Used to swipe\n\n _this.swipeStartX = 0;\n _this.swipeStartY = 0;\n _this.swipeEndX = 0;\n _this.swipeEndY = 0; // Used to pinch\n\n _this.pinchTouchList = null;\n _this.pinchDistance = 0; // Used to differentiate between images with identical src\n\n _this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n\n _this.moveRequested = false;\n return _this;\n }\n\n _createClass(ReactImageLightbox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.props.animationDisabled) {\n // Make opening animation play\n this.setState({\n isClosing: false\n });\n } // Prevents cross-origin errors when using a cross-origin iframe\n\n\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function (type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n\n this.getSrcTypes().forEach(function (srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) {\n _this3.moveRequested = false;\n }\n }); // Wait for move...\n\n return !this.moveRequested;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this4 = this;\n\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function (srcType) {\n if (prevProps[srcType.name] !== _this4.props[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[prevProps[srcType.name]] = true;\n nextSrcDict[_this4.props[srcType.name]] = true;\n }\n });\n\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function (prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this4.imageCache) {\n _this4.imageCache[prevSrc].loaded = false;\n }\n });\n this.moveRequested = false; // Load any new images\n\n this.loadAllImages(this.props);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this5 = this;\n\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function (type) {\n _this5.windowContext.removeEventListener(type, _this5.listeners[type]);\n });\n this.timeouts.forEach(function (tid) {\n return clearTimeout(tid);\n });\n }\n }, {\n key: \"setTimeout\",\n value: function (_setTimeout) {\n function setTimeout(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function (func, time) {\n var _this6 = this;\n\n var id = setTimeout(function () {\n _this6.timeouts = _this6.timeouts.filter(function (tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n }, {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this7 = this;\n\n if (this.preventInnerCloseTimeout) {\n this.clearTimeout(this.preventInnerCloseTimeout);\n }\n\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function () {\n _this7.preventInnerClose = false;\n _this7.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n\n }, {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n\n if (this.isImageLoaded(imageSrc)) {\n // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n } else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else {\n return null;\n }\n\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n\n }, {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n\n if (maxRatio > srcRatio) {\n // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n }\n\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n }, {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType('mainSrc');\n\n if (currentImageInfo === null) {\n return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n }\n\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) {\n // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n } else {\n maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n }\n\n var maxY = 0;\n\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) {\n // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n } else {\n maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n }\n\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n\n }, {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [{\n name: 'mainSrc',\n keyEnding: \"i\".concat(this.keyCounter)\n }, {\n name: 'mainSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter)\n }, {\n name: 'nextSrc',\n keyEnding: \"i\".concat(this.keyCounter + 1)\n }, {\n name: 'nextSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter + 1)\n }, {\n name: 'prevSrc',\n keyEnding: \"i\".concat(this.keyCounter - 1)\n }, {\n name: 'prevSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }];\n }\n /**\n * Get sizing when the image is scaled\n */\n\n }, {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n /**\n * Get the size of the lightbox in pixels\n */\n\n }, {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) {\n return this.outerEl.current.getBoundingClientRect();\n }\n\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n }, {\n key: \"clearTimeout\",\n value: function (_clearTimeout) {\n function clearTimeout(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n\n clearTimeout.toString = function () {\n return _clearTimeout.toString();\n };\n\n return clearTimeout;\n }(function (id) {\n this.timeouts = this.timeouts.filter(function (tid) {\n return tid !== id;\n });\n clearTimeout(id);\n } // Change zoom level\n )\n }, {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) {\n return;\n } // Constrain zoom level to the set bounds\n\n\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n\n if (nextZoomLevel === this.state.zoomLevel) {\n return;\n }\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n\n var imageBaseSize = this.getBestImageForType('mainSrc');\n\n if (imageBaseSize === null) {\n return;\n }\n\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== 'undefined' ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== 'undefined' ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n }, {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) {\n this.requestClose(event);\n }\n }\n /**\n * Handle user keyboard actions\n */\n\n }, {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n\n if (this.isAnimating()) {\n return;\n } // Allow slightly faster navigation through the images when user presses keys repeatedly\n\n\n if (event.type === 'keyup') {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n\n var currentTime = new Date();\n\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return;\n }\n\n this.lastKeyDownTime = currentTime.getTime();\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n /**\n * Handle a mouse wheel event over the lightbox container\n */\n\n }, {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this8 = this;\n\n // Prevent scrolling of the background\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function () {\n _this8.scrollX = 0;\n _this8.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n\n\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(function () {\n _this8.wheelActionTimeout = null;\n }, actionDelay);\n }\n }\n }, {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n\n if (Math.abs(event.deltaY) < yThreshold) {\n return;\n }\n\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n /**\n * Handle a double click on the current image\n */\n\n }, {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) {\n // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n } else {\n // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n }\n }, {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) {\n return true;\n }\n\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n\n switch (source) {\n case SOURCE_MOUSE:\n return false;\n\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n\n return false;\n\n default:\n return false;\n }\n }\n }, {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n }, {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function (_ref) {\n var id = _ref.id;\n return id !== pointer.id;\n });\n }\n }, {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this9 = this;\n\n this.pointerList = this.pointerList.filter(function (_ref2) {\n var source = _ref2.source;\n return source === _this9.eventsSource;\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.multiPointerMove(event, [ReactImageLightbox.parseMouseEvent(event)]);\n }\n }\n }, {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) {\n switch (event.type) {\n case 'pointerdown':\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n\n break;\n\n case 'pointermove':\n this.multiPointerMove(event, [ReactImageLightbox.parsePointerEvent(event)]);\n break;\n\n case 'pointerup':\n case 'pointercancel':\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n }\n }, {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this10 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function (eventTouch) {\n return _this10.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n this.multiPointerMove(event, [].map.call(event.changedTouches, function (eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n }\n }, {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this11 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function (touch) {\n return _this11.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) {\n this.handleSwipeStart(pointer);\n } else {\n this.handleMoveStart(pointer);\n }\n }\n }, {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n\n switch (this.pointerList.length) {\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n {\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n }\n\n case ACTION_SWIPE:\n {\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n }\n\n case ACTION_PINCH:\n {\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n\n switch (this.pointerList.length) {\n case 0:\n {\n this.eventsSource = SOURCE_ANY;\n break;\n }\n\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n // This happens:\n // - On a mouseDown event\n // - On a touchstart event\n\n }, {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref3) {\n var clientX = _ref3.x,\n clientY = _ref3.y;\n\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n // This happens:\n // - After a mouseDown and before a mouseUp event\n // - After a touchstart and before a touchend event\n\n }, {\n key: \"handleMove\",\n value: function handleMove(_ref4) {\n var clientX = _ref4.x,\n clientY = _ref4.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) {\n this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n }\n }, {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this12 = this;\n\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function () {\n _this12.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n }, {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref5) {\n var clientX = _ref5.x,\n clientY = _ref5.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref6) {\n var clientX = _ref6.x,\n clientY = _ref6.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) {\n return;\n }\n\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n\n if (xDiffAbs < boxRect.width / 4) {\n return;\n }\n }\n\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n }, {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref8 = _slicedToArray(_ref7, 2),\n a = _ref8[0],\n b = _ref8[1];\n\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n }, {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref10 = _slicedToArray(_ref9, 2),\n a = _ref10[0],\n b = _ref10[1];\n\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n }, {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function (_ref11) {\n var id = _ref11.id,\n x = _ref11.x,\n y = _ref11.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n }, {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function (oldPointer) {\n for (var i = 0; i < pointerList.length; i += 1) {\n if (pointerList[i].id === oldPointer.id) {\n return pointerList[i];\n }\n }\n\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList),\n clientX = _this$calculatePinchC.x,\n clientY = _this$calculatePinchC.y;\n\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n }, {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n\n }, {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n }, {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MAX_ZOOM_LEVEL) {\n this.zoomOutBtn.current.focus();\n }\n }\n }, {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n this.zoomInBtn.current.focus();\n }\n }\n }, {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n\n if (!this.caption.current) {\n return;\n }\n\n var _this$caption$current = this.caption.current.getBoundingClientRect(),\n height = _this$caption$current.height;\n\n var _this$caption$current2 = this.caption.current,\n scrollHeight = _this$caption$current2.scrollHeight,\n scrollTop = _this$caption$current2.scrollTop;\n\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) {\n event.preventDefault();\n }\n } // Detach key and mouse input events\n\n }, {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n\n }, {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n\n }, {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this13 = this;\n\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function () {\n done();\n }, 1);\n return;\n }\n\n var inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = function (errorEvent) {\n _this13.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n\n\n _this13.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, srcType, true))\n };\n });\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = function () {\n _this13.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n _this13.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n\n }, {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this14 = this;\n\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function (err) {\n // Give up showing image on error\n if (err) {\n return;\n } // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n\n\n if (_this14.props[srcType] !== imageSrc || _this14.didUnmount) {\n return;\n } // Force rerender with the new image\n\n\n _this14.forceUpdate();\n };\n }; // Load the images\n\n\n this.getSrcTypes().forEach(function (srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n\n if (props[type] && _this14.state.loadErrorStatus[type]) {\n _this14.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, type, false))\n };\n });\n } // Load unloaded images\n\n\n if (props[type] && !_this14.isImageLoaded(props[type])) {\n _this14.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n }\n });\n } // Request that the lightbox be closed\n\n }, {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this15 = this;\n\n // Call the parent close request\n var closeLightbox = function closeLightbox() {\n return _this15.props.onCloseRequest(event);\n };\n\n if (this.props.animationDisabled || event.type === 'keydown' && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n\n\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n }, {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this16 = this;\n\n // Reset the zoom level on image move\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function () {\n return _this16.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n\n this.keyPressed = false;\n this.moveRequested = true;\n\n if (direction === 'prev') {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n\n }, {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove('next', event);\n } // Request to transition to the previous image\n\n }, {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove('prev', event);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this17 = this;\n\n var _this$props = this.props,\n animationDisabled = _this$props.animationDisabled,\n animationDuration = _this$props.animationDuration,\n clickOutsideToClose = _this$props.clickOutsideToClose,\n discourageDownloads = _this$props.discourageDownloads,\n enableZoom = _this$props.enableZoom,\n imageTitle = _this$props.imageTitle,\n nextSrc = _this$props.nextSrc,\n prevSrc = _this$props.prevSrc,\n toolbarButtons = _this$props.toolbarButtons,\n reactModalStyle = _this$props.reactModalStyle,\n _onAfterOpen = _this$props.onAfterOpen,\n imageCrossOrigin = _this$props.imageCrossOrigin,\n reactModalProps = _this$props.reactModalProps,\n loader = _this$props.loader;\n var _this$state = this.state,\n zoomLevel = _this$state.zoomLevel,\n offsetX = _this$state.offsetX,\n offsetY = _this$state.offsetY,\n isClosing = _this$state.isClosing,\n loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n\n if (!animationDisabled && this.isAnimating()) {\n transitionStyle = _objectSpread2(_objectSpread2({}, transitionStyle), {}, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n } // Key endings to differentiate between images with the same src\n\n\n var keyEndings = {};\n this.getSrcTypes().forEach(function (_ref12) {\n var name = _ref12.name,\n keyEnding = _ref12.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n\n var images = [];\n\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this17.props[srcType]) {\n return;\n }\n\n var bestImageInfo = _this17.getBestImageForType(srcType);\n\n var imageStyle = _objectSpread2(_objectSpread2({}, transitionStyle), ReactImageLightbox.getTransform(_objectSpread2(_objectSpread2({}, transforms), bestImageInfo)));\n\n if (zoomLevel > MIN_ZOOM_LEVEL) {\n imageStyle.cursor = 'move';\n } // support IE 9 and 11\n\n\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function (key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n\n\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this17.props.imageLoadErrorMessage)));\n return;\n }\n\n if (bestImageInfo === null) {\n var loadingIcon = loader !== undefined ? loader : /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function (_, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n\n var imageSrc = bestImageInfo.src;\n\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else {\n images.push( /*#__PURE__*/React.createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === 'string' ? imageTitle : translate('Image'),\n draggable: false\n })));\n }\n };\n\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n\n addImage('nextSrc', 'ril-image-next ril__imageNext', {\n x: boxSize.width\n }); // Main Image\n\n addImage('mainSrc', 'ril-image-current', {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n\n addImage('prevSrc', 'ril-image-prev ril__imagePrev', {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread2({\n zIndex: 1000,\n backgroundColor: 'transparent'\n }, reactModalStyle.overlay),\n content: _objectSpread2({\n backgroundColor: 'transparent',\n overflow: 'hidden',\n // Needed, otherwise keyboard shortcuts scroll the page\n border: 'none',\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return /*#__PURE__*/React.createElement(Modal, _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this17.outerEl.current) {\n _this17.outerEl.current.focus();\n }\n\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate('Lightbox'),\n appElement: typeof global.window !== 'undefined' ? global.window.document.body : undefined\n }, reactModalProps), /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? 'ril-closing ril__outerClosing' : ''),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? 'normal' : 'reverse'\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n title: this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n\n }), nextSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n title: this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n\n }), /*#__PURE__*/React.createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function (button, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n title: this.props.zoomInLabel,\n className: ['ril-zoom-in', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomInButton'].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n title: this.props.zoomOutLabel,\n className: ['ril-zoom-out', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomOutButton'].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n title: this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n\n })))), this.props.imageCaption &&\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }], [{\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n }, {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: 'mouse',\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n }, {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n }, {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n\n }, {\n key: \"getTransform\",\n value: function getTransform(_ref13) {\n var _ref13$x = _ref13.x,\n x = _ref13$x === void 0 ? 0 : _ref13$x,\n _ref13$y = _ref13.y,\n y = _ref13$y === void 0 ? 0 : _ref13$y,\n _ref13$zoom = _ref13.zoom,\n zoom = _ref13$zoom === void 0 ? 1 : _ref13$zoom,\n width = _ref13.width,\n targetWidth = _ref13.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n\n if (width > windowWidth) {\n nextX += (windowWidth - width) / 2;\n }\n\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }]);\n\n return ReactImageLightbox;\n}(Component);\n\nReactImageLightbox.propTypes = {\n //-----------------------------\n // Image sources\n //-----------------------------\n // Main display image url\n mainSrc: PropTypes.string.isRequired,\n // eslint-disable-line react/no-unused-prop-types\n // Previous display image url (displayed to the left)\n // If left undefined, movePrev actions will not be performed, and the button not displayed\n prevSrc: PropTypes.string,\n // Next display image url (displayed to the right)\n // If left undefined, moveNext actions will not be performed, and the button not displayed\n nextSrc: PropTypes.string,\n //-----------------------------\n // Image thumbnail sources\n //-----------------------------\n // Thumbnail image url corresponding to props.mainSrc\n mainSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.prevSrc\n prevSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.nextSrc\n nextSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n //-----------------------------\n // Event Handlers\n //-----------------------------\n // Close window event\n // Should change the parent state such that the lightbox is not rendered\n onCloseRequest: PropTypes.func.isRequired,\n // Move to previous image event\n // Should change the parent state such that props.prevSrc becomes props.mainSrc,\n // props.mainSrc becomes props.nextSrc, etc.\n onMovePrevRequest: PropTypes.func,\n // Move to next image event\n // Should change the parent state such that props.nextSrc becomes props.mainSrc,\n // props.mainSrc becomes props.prevSrc, etc.\n onMoveNextRequest: PropTypes.func,\n // Called when an image fails to load\n // (imageSrc: string, srcType: string, errorEvent: object): void\n onImageLoadError: PropTypes.func,\n // Called when image successfully loads\n onImageLoad: PropTypes.func,\n // Open window event\n onAfterOpen: PropTypes.func,\n //-----------------------------\n // Download discouragement settings\n //-----------------------------\n // Enable download discouragement (prevents [right-click -> Save Image As...])\n discourageDownloads: PropTypes.bool,\n //-----------------------------\n // Animation settings\n //-----------------------------\n // Disable all animation\n animationDisabled: PropTypes.bool,\n // Disable animation on actions performed with keyboard shortcuts\n animationOnKeyInput: PropTypes.bool,\n // Animation duration (ms)\n animationDuration: PropTypes.number,\n //-----------------------------\n // Keyboard shortcut settings\n //-----------------------------\n // Required interval of time (ms) between key actions\n // (prevents excessively fast navigation of images)\n keyRepeatLimit: PropTypes.number,\n // Amount of time (ms) restored after each keyup\n // (makes rapid key presses slightly faster than holding down the key to navigate images)\n keyRepeatKeyupBonus: PropTypes.number,\n //-----------------------------\n // Image info\n //-----------------------------\n // Image title\n imageTitle: PropTypes.node,\n // Image caption\n imageCaption: PropTypes.node,\n // Optional crossOrigin attribute\n imageCrossOrigin: PropTypes.string,\n //-----------------------------\n // Lightbox style\n //-----------------------------\n // Set z-index style, etc., for the parent react-modal (format: https://github.com/reactjs/react-modal#styles )\n reactModalStyle: PropTypes.shape({}),\n // Padding (px) between the edge of the window and the lightbox\n imagePadding: PropTypes.number,\n wrapperClassName: PropTypes.string,\n //-----------------------------\n // Other\n //-----------------------------\n // Array of custom toolbar buttons\n toolbarButtons: PropTypes.arrayOf(PropTypes.node),\n // When true, clicks outside of the image close the lightbox\n clickOutsideToClose: PropTypes.bool,\n // Set to false to disable zoom functionality and hide zoom buttons\n enableZoom: PropTypes.bool,\n // Override props set on react-modal (https://github.com/reactjs/react-modal)\n reactModalProps: PropTypes.shape({}),\n // Aria-labels\n nextLabel: PropTypes.string,\n prevLabel: PropTypes.string,\n zoomInLabel: PropTypes.string,\n zoomOutLabel: PropTypes.string,\n closeLabel: PropTypes.string,\n imageLoadErrorMessage: PropTypes.node,\n // custom loader\n loader: PropTypes.node\n};\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: 'Close lightbox',\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: 'Next image',\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: 'Previous image',\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: '',\n zoomInLabel: 'Zoom in',\n zoomOutLabel: 'Zoom out',\n imageLoadErrorMessage: 'This image failed to load',\n loader: undefined\n};\n\nexport default ReactImageLightbox;\n","import React from 'react';\r\n\r\nexport const discord = (\r\n \r\n Discord\r\n \r\n \r\n);\r\n\r\nexport const email = (\r\n \r\n Email\r\n \r\n \r\n);\r\n\r\nexport const facebook = (\r\n \r\n Facebook\r\n \r\n \r\n);\r\n\r\nexport const github = (\r\n \r\n GitHub\r\n \r\n \r\n);\r\n\r\nexport const instagram = (\r\n \r\n Instagram\r\n \r\n \r\n);\r\n\r\nexport const linkedIn = (\r\n \r\n LinkedIn\r\n \r\n \r\n);\r\n\r\nexport const patreon = (\r\n \r\n Patreon\r\n \r\n \r\n);\r\n\r\nexport const paypal = (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const twitch = (\r\n \r\n Twitch\r\n \r\n \r\n);\r\n\r\nexport const twitter = (\r\n \r\n Twitter\r\n \r\n \r\n);\r\n\r\nexport const unity = (\r\n \r\n Unity\r\n \r\n \r\n);\r\n\r\nexport const youtube = (\r\n \r\n YouTube\r\n \r\n \r\n);\r\n\r\nconst icons = {\r\n discord,\r\n email,\r\n facebook,\r\n github,\r\n instagram,\r\n linkedIn,\r\n patreon,\r\n paypal,\r\n twitch,\r\n twitter,\r\n unity,\r\n youtube,\r\n};\r\n\r\nexport default icons;\r\n","import PropTypes from 'prop-types';\r\nimport {\r\n discord,\r\n email,\r\n facebook,\r\n github,\r\n instagram,\r\n patreon,\r\n paypal,\r\n twitch,\r\n twitter,\r\n unity,\r\n youtube,\r\n} from './svg/icons';\r\n\r\nexport const SocialLinkProps = PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.shape({\r\n key: PropTypes.string,\r\n name: PropTypes.string,\r\n color: PropTypes.string,\r\n url: PropTypes.string,\r\n icon: PropTypes.element,\r\n }),\r\n]);\r\n\r\nconst socialLinks = {\r\n discord: {\r\n key: 'discord',\r\n name: 'Discord',\r\n color: '#7289da',\r\n url: 'https://discord.gg/DdYyWVb',\r\n icon: discord,\r\n },\r\n email: {\r\n key: 'email',\r\n name: 'Email',\r\n url: 'mailto:support@zigurous.com',\r\n icon: email,\r\n },\r\n facebook: {\r\n key: 'facebook',\r\n name: 'Facebook',\r\n color: '#1877f2',\r\n url: 'https://facebook.com/zigurous',\r\n icon: facebook,\r\n },\r\n github: {\r\n key: 'github',\r\n name: 'GitHub',\r\n url: 'https://github.com/zigurous',\r\n icon: github,\r\n },\r\n instagram: {\r\n key: 'instagram',\r\n name: 'Instagram',\r\n color: '#e4405f',\r\n url: 'https://instagram.com/zigurous',\r\n icon: instagram,\r\n },\r\n patreon: {\r\n key: 'patreon',\r\n name: 'Patreon',\r\n color: '#ff424d',\r\n url: 'https://patreon.com/zigurous',\r\n icon: patreon,\r\n },\r\n paypal: {\r\n key: 'paypal',\r\n name: 'PayPal',\r\n color: '#00457c',\r\n url: 'https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8',\r\n icon: paypal,\r\n },\r\n twitch: {\r\n key: 'twitch',\r\n name: 'Twitch',\r\n color: '#9146ff',\r\n url: 'https://twitch.tv/zigurous',\r\n icon: twitch,\r\n },\r\n twitter: {\r\n key: 'twitter',\r\n name: 'Twitter',\r\n color: '#1da1f2',\r\n url: 'https://twitter.com/zigurous',\r\n icon: twitter,\r\n },\r\n unity: {\r\n key: 'unity',\r\n name: 'Unity',\r\n url: 'https://assetstore.unity.com/publishers/51884',\r\n icon: unity,\r\n },\r\n youtube: {\r\n key: 'youtube',\r\n name: 'YouTube',\r\n color: '#ff0000',\r\n url: 'https://youtube.com/c/zigurous?sub_confirmation=1',\r\n icon: youtube,\r\n },\r\n};\r\n\r\nexport default socialLinks;\r\n","import React from 'react';\n\nexport const wordmark = (\n \n \n \n \n \n \n \n \n \n \n);\n\nexport const lettermark = (\n \n \n \n \n \n);\n\nexport const logomark = (\n \n \n \n \n \n);\n\nconst logo = {\n wordmark,\n lettermark,\n logomark,\n};\n\nexport default logo;\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nfunction Link({\r\n activeClassName,\r\n children,\r\n className,\r\n ElementType = 'a',\r\n external = false,\r\n href,\r\n path,\r\n rel,\r\n target,\r\n to,\r\n underlined = false,\r\n unstyled = false,\r\n ...props\r\n}) {\r\n const elementProps =\r\n ElementType === 'a'\r\n ? {\r\n href: href || path || to,\r\n rel: rel || (external ? 'noopener noreferrer' : undefined),\r\n target: target || (external ? '_blank' : undefined),\r\n }\r\n : {\r\n to: to || path || href,\r\n href: href || path || to,\r\n activeClassName,\r\n };\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\nLink.propTypes = {\r\n activeClassName: PropTypes.string,\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n ElementType: PropTypes.elementType,\r\n external: PropTypes.bool,\r\n href: PropTypes.string,\r\n path: PropTypes.string,\r\n rel: PropTypes.string,\r\n target: PropTypes.string,\r\n to: PropTypes.string,\r\n underlined: PropTypes.bool,\r\n unstyled: PropTypes.bool,\r\n};\r\n\r\nexport default Link;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport svgs from '../svg/logo';\r\n\r\nfunction renderLogo(image, variant) {\r\n if (image) {\r\n return \"Logo\";\r\n } else {\r\n return svgs[variant];\r\n }\r\n}\r\n\r\nfunction Logo({\r\n className,\r\n fill,\r\n image,\r\n onClick,\r\n size = 'medium',\r\n style,\r\n variant = 'wordmark',\r\n}) {\r\n return (\r\n \r\n {onClick ? (\r\n {\r\n event.target.blur();\r\n onClick();\r\n }}\r\n >\r\n {renderLogo(image, variant)}\r\n \r\n ) : (\r\n renderLogo(image, variant)\r\n )}\r\n \r\n );\r\n}\r\n\r\nLogo.size = Object.freeze({\r\n xs: 'xs',\r\n extraSmall: 'extraSmall',\r\n sm: 'sm',\r\n small: 'small',\r\n md: 'md',\r\n medium: 'medium',\r\n lg: 'lg',\r\n large: 'large',\r\n xl: 'xl',\r\n extraLarge: 'extraLarge',\r\n});\r\n\r\nLogo.variant = Object.freeze({\r\n wordmark: 'wordmark',\r\n lettermark: 'lettermark',\r\n logomark: 'logomark',\r\n});\r\n\r\nLogo.propTypes = {\r\n className: PropTypes.string,\r\n fill: PropTypes.string,\r\n image: PropTypes.string,\r\n onClick: PropTypes.func,\r\n size: PropTypes.oneOf(Object.values(Logo.size)),\r\n style: PropTypes.object,\r\n variant: PropTypes.oneOf(Object.values(Logo.variant)),\r\n};\r\n\r\nexport default Logo;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport Link from './Link';\r\nimport Logo from './Logo';\r\n\r\nfunction AppFooter({\r\n bordered = false,\r\n className,\r\n copyright,\r\n hideLogo = false,\r\n LinkElementType = 'a',\r\n links = [],\r\n onLinkClick,\r\n onLogoClick,\r\n sticky = false,\r\n theme,\r\n transparent = false,\r\n}) {\r\n return (\r\n \r\n
\r\n
\r\n
\r\n \r\n {!hideLogo && }\r\n {copyright && (\r\n \r\n {copyright}\r\n \r\n )}\r\n \r\n {links && links.length > 0 && (\r\n \r\n {links.map((link) => (\r\n {\r\n if (onLinkClick) {\r\n onLinkClick(link);\r\n }\r\n }}\r\n to={link.to}\r\n >\r\n {link.name}\r\n \r\n ))}\r\n \r\n )}\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nAppFooter.propTypes = {\r\n bordered: PropTypes.bool,\r\n className: PropTypes.string,\r\n copyright: PropTypes.node,\r\n hideLogo: PropTypes.bool,\r\n LinkElementType: PropTypes.elementType,\r\n links: PropTypes.arrayOf(PropTypes.shape(Link.propTypes)),\r\n onLinkClick: PropTypes.func,\r\n onLogoClick: PropTypes.func,\r\n sticky: PropTypes.bool,\r\n theme: PropTypes.string,\r\n transparent: PropTypes.bool,\r\n};\r\n\r\nexport default AppFooter;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nfunction Icon({\r\n ariaHidden = true,\r\n children,\r\n className,\r\n inactive,\r\n material = true,\r\n name,\r\n size = 'medium',\r\n theme,\r\n ...props\r\n}) {\r\n return (\r\n \r\n {name || children}\r\n \r\n );\r\n}\r\n\r\nIcon.size = Object.freeze({\r\n inherit: 'inherit',\r\n sm: 'sm',\r\n small: 'small',\r\n md: 'md',\r\n medium: 'medium',\r\n lg: 'lg',\r\n large: 'large',\r\n xl: 'xl',\r\n extraLarge: 'extraLarge',\r\n});\r\n\r\nIcon.theme = Object.freeze({\r\n light: 'light',\r\n dark: 'dark',\r\n});\r\n\r\nIcon.propTypes = {\r\n ariaHidden: PropTypes.bool,\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n inactive: PropTypes.bool,\r\n material: PropTypes.bool,\r\n name: PropTypes.string,\r\n size: PropTypes.oneOf(Object.keys(Icon.size)),\r\n theme: PropTypes.oneOf(Object.values(Icon.theme)),\r\n};\r\n\r\nexport default Icon;\r\n","export default function debounce(func, delay) {\n let inDebounce;\n return function () {\n const context = this;\n const args = arguments;\n clearTimeout(inDebounce);\n inDebounce = setTimeout(() => func.apply(context, args), delay);\n };\n}\n","export function bindEvent(element, eventName, eventHandler) {\r\n if (element.addEventListener) {\r\n element.addEventListener(eventName, eventHandler);\r\n } else if (element.attachEvent) {\r\n element.attachEvent(`on${eventName}`, eventHandler);\r\n }\r\n}\r\n\r\nexport function unbindEvent(element, eventName, eventHandler) {\r\n if (element.removeEventListener) {\r\n element.removeEventListener(eventName, eventHandler);\r\n } else if (element.detachEvent) {\r\n element.detachEvent(`on${eventName}`, eventHandler);\r\n }\r\n}\r\n\r\nexport function enterKeyHandler(callback = () => {}) {\r\n return (event) => {\r\n if (event.defaultPrevented) {\r\n return;\r\n }\r\n\r\n let handled = false;\r\n if (event.key === 'Enter') {\r\n handled = true;\r\n callback(event);\r\n }\r\n\r\n if (handled) {\r\n event.preventDefault();\r\n }\r\n };\r\n}\r\n","export function isPathActive(path, location) {\r\n if (!location) {\r\n return false;\r\n } else if (path === '/') {\r\n return path === location.pathname;\r\n } else {\r\n return location.pathname.includes(path);\r\n }\r\n}\r\n","export default function omit(obj, omitted) {\n return Object.keys(obj).reduce((result, key) => {\n if (Array.isArray(omitted)) {\n if (!omitted.includes(key)) {\n result[key] = obj[key];\n }\n } else {\n if (key !== omitted) {\n result[key] = obj[key];\n }\n }\n return result;\n }, {});\n}\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport Icon from './Icon';\r\nimport Link from './Link';\r\nimport { isPathActive, omit } from '../utils';\r\n\r\nfunction NavBar({\r\n className,\r\n hidden = false,\r\n LinkElementType = 'a',\r\n links = [],\r\n location = typeof window !== 'undefined' && window.location,\r\n onLinkClick,\r\n}) {\r\n return (\r\n