-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-61df6ea638c0503441aa.js
3 lines (3 loc) · 88.2 KB
/
app-61df6ea638c0503441aa.js
1
2
3
/*! For license information please see app-61df6ea638c0503441aa.js.LICENSE.txt */
(self.webpackChunkpersonal_portfolio=self.webpackChunkpersonal_portfolio||[]).push([[143],{2393:function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,a=t.origin,s=t.protocol,c=t.host,u=t.hostname,l=t.port,p=e.location.pathname;!p&&o&&i&&(p=new URL(o).pathname);return{pathname:encodeURI(decodeURI(p)),search:n,hash:r,href:o,origin:a,protocol:s,host:c,hostname:u,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},o=function(e,t){var o=[],a=r(e),i=!1,s=function(){};return{get location(){return a},get transitioning(){return i},_onTransitionComplete:function(){i=!1,s()},listen:function(t){o.push(t);var n=function(){a=r(e),t({location:a,action:"POP"})};return e.addEventListener("popstate",n),function(){e.removeEventListener("popstate",n),o=o.filter((function(e){return e!==t}))}},navigate:function(t){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=c.state,l=c.replace,p=void 0!==l&&l;if("number"==typeof t)e.history.go(t);else{u=n({},u,{key:Date.now()+""});try{i||p?e.history.replaceState(u,null,t):e.history.pushState(u,null,t)}catch(d){e.location[p?"replace":"assign"](t)}}a=r(e),i=!0;var f=new Promise((function(e){return s=e}));return o.forEach((function(e){return e({location:a,action:"PUSH"})})),f}}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(e)},replaceState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=e},go:function(e){var t=r+e;t<0||t>a.length-1||(r=t)}}}},i=!("undefined"==typeof window||!window.document||!window.document.createElement),s=o(i?window:a()),c=s.navigate;t.V5=s},2098:function(e,t,n){"use strict";t.__esModule=!0,t.shallowCompare=t.validateRedirect=t.insertParams=t.resolve=t.match=t.pick=t.startsWith=void 0;var r,o=n(1143),a=(r=o)&&r.__esModule?r:{default:r};var i=function(e,t){return e.substr(0,t.length)===t},s=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],i=d(o),s=""===i[0],u=f(e),p=0,h=u.length;p<h;p++){var g=!1,v=u[p].route;if(v.default)r={route:v,params:{},uri:t};else{for(var y=d(v.path),w={},b=Math.max(i.length,y.length),E=0;E<b;E++){var C=y[E],S=i[E];if(l(C)){w[C.slice(1)||"*"]=i.slice(E).map(decodeURIComponent).join("/");break}if(void 0===S){g=!0;break}var P=c.exec(C);if(P&&!s){-1===m.indexOf(P[1])||(0,a.default)(!1);var _=decodeURIComponent(S);w[P[1]]=_}else if(C!==S){g=!0;break}}if(!g){n={route:v,params:w,uri:"/"+i.slice(0,E).join("/")};break}}}return n||r||null},c=/^:(.+)/,u=function(e){return c.test(e)},l=function(e){return e&&"*"===e[0]},p=function(e,t){return{route:e,score:e.default?0:d(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?u(t)?e+=2:l(t)?e-=5:e+=3:e+=1,e}),0),index:t}},f=function(e){return e.map(p).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},d=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},h=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},m=["uri","path"];t.startsWith=i,t.pick=s,t.match=function(e,t){return s([{path:e}],t)},t.resolve=function(e,t){if(i(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],a=t.split("?")[0],s=d(r),c=d(a);if(""===s[0])return h(a,o);if(!i(s[0],".")){var u=c.concat(s).join("/");return h(("/"===a?"":"/")+u,o)}for(var l=c.concat(s),p=[],f=0,m=l.length;f<m;f++){var g=l[f];".."===g?p.pop():"."!==g&&p.push(g)}return h("/"+p.join("/"),o)},t.insertParams=function(e,t){var n=e.split("?"),r=n[0],o=n[1],a=void 0===o?"":o,i="/"+d(r).map((function(e){var n=c.exec(e);return n?t[n[1]]:e})).join("/"),s=t.location,u=(s=void 0===s?{}:s).search,l=(void 0===u?"":u).split("?")[1]||"";return i=h(i,a,l)},t.validateRedirect=function(e,t){var n=function(e){return u(e)};return d(e).filter(n).sort().join("/")===d(t).filter(n).sort().join("/")},t.shallowCompare=function(e,t){var n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((function(n){return t.hasOwnProperty(n)&&e[n]===t[n]}))}},4811:function(e){"use strict";const t=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);if(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim(),0===e.length)return"";if(1===e.length)return t.pascalCase?e.toUpperCase():e.toLowerCase();return e!==e.toLowerCase()&&(e=(e=>{let t=!1,n=!1,r=!1;for(let o=0;o<e.length;o++){const a=e[o];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,r=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e})(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase())).replace(/\d+(\w|$)/g,(e=>e.toUpperCase())),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n;var n};e.exports=t,e.exports.default=t},4041:function(){"use strict";var e,t,n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=(e=["",""],t=["",""],Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));var o=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(e){return"function"==typeof e?e():e})),this.tag}return n(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return this.tag(r,e.apply(void 0,[t].concat(o)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce((function(e,t){return t.onString?t.onString(e):e}),e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce((function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e}),e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce((function(e,t){return t.onEndResult?t.onEndResult(e):e}),e)}}]),e}(),a=o,i={separator:"",conjunction:"",serial:!1},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,o=e.separator,a=e.conjunction,i=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(o+s[1]):t.join(o+" "),a&&r>1){var c=t.lastIndexOf(o);t=t.slice(0,c)+(i?o:"")+" "+a+t.slice(c+1)}}return t}}};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map((function(e){return e.length}))));if(r){var o=new RegExp("^.{"+r+"}","gm");return t.replace(o,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}},l=(new a(s({separator:","}),c,u),new a(s({separator:",",conjunction:"and"}),c,u),new a(s({separator:",",conjunction:"or"}),c,u),function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}}),p=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},f=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(p):p(e)?e:""}}},d=(new a(l("\n"),f,s,c,u),function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}}),h=(new a(l("\n"),s,c,u,d(/&/g,"&"),d(/</g,"<"),d(/>/g,">"),d(/"/g,"""),d(/'/g,"'"),d(/`/g,"`")),function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}});new a(h(/(?:\n(?:\s*))+/g," "),u),new a(h(/(?:\n\s*)/g,""),u),new a(s({separator:","}),h(/(?:\s+)/g," "),u),new a(s({separator:",",conjunction:"or"}),h(/(?:\s+)/g," "),u),new a(s({separator:",",conjunction:"and"}),h(/(?:\s+)/g," "),u),new a(s,c,u),new a(s,h(/(?:\s+)/g," "),u),new a(c,u),new a(c("all"),u)},7091:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(a){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},o=r.exec(e);o;){try{n[o[0]]=decodeURIComponent(o[0])}catch(t){var i=a(o[0]);i!==o[0]&&(n[o[0]]=i)}o=r.exec(e)}n["%C2"]="�";for(var s=Object.keys(n),c=0;c<s.length;c++){var u=s[c];e=e.replace(new RegExp(u,"g"),n[u])}return e}(e)}}},8616:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),a=0;a<r.length;a++){var i=r[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(n[i]=s)}return n}},6494:function(e){"use strict";e.exports=Object.assign},8663:function(e,t,n){var r,o;!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var i=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=i,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(s+="="+a[c].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(r.read||r)(c,u)||t(c),n)try{c=JSON.parse(c)}catch(l){}if(o[u]=c,e===u)break}catch(l){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},9398:function(e){!function(t,n){var r=function(e,t,n){"use strict";var r,o;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in o=e.lazySizesConfig||e.lazysizesConfig||{},n)t in o||(o[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var a=t.documentElement,i=e.HTMLPictureElement,s="addEventListener",c="getAttribute",u=e[s].bind(e),l=e.setTimeout,p=e.requestAnimationFrame||l,f=e.requestIdleCallback,d=/^picture$/i,h=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[c]("class")||"")&&m[t]},y=function(e,t){v(e,t)||e.setAttribute("class",(e[c]("class")||"").trim()+" "+t)},w=function(e,t){var n;(n=v(e,t))&&e.setAttribute("class",(e[c]("class")||"").replace(n," "))},b=function(e,t,n){var r=n?s:"removeEventListener";n&&b(e,t),h.forEach((function(n){e[r](n,t)}))},E=function(e,n,o,a,i){var s=t.createEvent("Event");return o||(o={}),o.instance=r,s.initEvent(n,!a,!i),s.detail=o,e.dispatchEvent(s),s},C=function(t,n){var r;!i&&(r=e.picturefill||o.pf)?(n&&n.src&&!t[c]("srcset")&&t.setAttribute("srcset",n.src),r({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},S=function(e,t){return(getComputedStyle(e,null)||{})[t]},P=function(e,t,n){for(n=n||e.offsetWidth;n<o.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},_=(ye=[],we=[],be=ye,Ee=function(){var e=be;for(be=ye.length?we:ye,ge=!0,ve=!1;e.length;)e.shift()();ge=!1},Ce=function(e,n){ge&&!n?e.apply(this,arguments):(be.push(e),ve||(ve=!0,(t.hidden?l:p)(Ee)))},Ce._lsFlush=Ee,Ce),R=function(e,t){return t?function(){_(e)}:function(){var t=this,n=arguments;_((function(){e.apply(t,n)}))}},k=function(e){var t,r=0,a=o.throttleDelay,i=o.ricTimeout,s=function(){t=!1,r=n.now(),e()},c=f&&i>49?function(){f(s,{timeout:i}),i!==o.ricTimeout&&(i=o.ricTimeout)}:R((function(){l(s)}),!0);return function(e){var o;(e=!0===e)&&(i=33),t||(t=!0,(o=a-(n.now()-r))<0&&(o=0),e||o<9?c():l(c,o))}},x=function(e){var t,r,o=99,a=function(){t=null,e()},i=function(){var e=n.now()-r;e<o?l(i,o-e):(f||a)(a)};return function(){r=n.now(),t||(t=l(i,o))}},O=($=/^img$/i,J=/^iframe$/i,V="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),K=0,Y=0,X=0,ee=-1,te=function(e){X--,(!e||X<0||!e.target)&&(X=0)},ne=function(e){return null==Q&&(Q="hidden"==S(t.body,"visibility")),Q||!("hidden"==S(e.parentNode,"visibility")&&"hidden"==S(e,"visibility"))},re=function(e,n){var r,o=e,i=ne(e);for(H-=n,G+=n,B-=n,Z+=n;i&&(o=o.offsetParent)&&o!=t.body&&o!=a;)(i=(S(o,"opacity")||1)>0)&&"visible"!=S(o,"overflow")&&(r=o.getBoundingClientRect(),i=Z>r.left&&B<r.right&&G>r.top-1&&H<r.bottom+1);return i},oe=function(){var e,n,i,s,u,l,p,f,d,h,m,g,v=r.elements;if((M=o.loadMode)&&X<8&&(e=v.length)){for(n=0,ee++;n<e;n++)if(v[n]&&!v[n]._lazyRace)if(!V||r.prematureUnveil&&r.prematureUnveil(v[n]))fe(v[n]);else if((f=v[n][c]("data-expand"))&&(l=1*f)||(l=Y),h||(h=!o.expand||o.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:o.expand,r._defEx=h,m=h*o.expFactor,g=o.hFac,Q=null,Y<m&&X<1&&ee>2&&M>2&&!t.hidden?(Y=m,ee=0):Y=M>1&&ee>1&&X<6?h:K),d!==l&&(W=innerWidth+l*g,q=innerHeight+l,p=-1*l,d=l),i=v[n].getBoundingClientRect(),(G=i.bottom)>=p&&(H=i.top)<=q&&(Z=i.right)>=p*g&&(B=i.left)<=W&&(G||Z||B||H)&&(o.loadHidden||ne(v[n]))&&(F&&X<3&&!f&&(M<3||ee<4)||re(v[n],l))){if(fe(v[n]),u=!0,X>9)break}else!u&&F&&!s&&X<4&&ee<4&&M>2&&(I[0]||o.preloadAfterLoad)&&(I[0]||!f&&(G||Z||B||H||"auto"!=v[n][c](o.sizesAttr)))&&(s=I[0]||v[n]);s&&!u&&fe(s)}},ae=k(oe),ie=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),y(t,o.loadedClass),w(t,o.loadingClass),b(t,ce),E(t,"lazyloaded"))},se=R(ie),ce=function(e){se({target:e.target})},ue=function(e,t){var n=e.getAttribute("data-load-mode")||o.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},le=function(e){var t,n=e[c](o.srcsetAttr);(t=o.customMedia[e[c]("data-media")||e[c]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},pe=R((function(e,t,n,r,a){var i,s,u,p,f,h;(f=E(e,"lazybeforeunveil",t)).defaultPrevented||(r&&(n?y(e,o.autosizesClass):e.setAttribute("sizes",r)),s=e[c](o.srcsetAttr),i=e[c](o.srcAttr),a&&(p=(u=e.parentNode)&&d.test(u.nodeName||"")),h=t.firesLoad||"src"in e&&(s||i||p),f={target:e},y(e,o.loadingClass),h&&(clearTimeout(U),U=l(te,2500),b(e,ce,!0)),p&&g.call(u.getElementsByTagName("source"),le),s?e.setAttribute("srcset",s):i&&!p&&(J.test(e.nodeName)?ue(e,i):e.src=i),a&&(s||p)&&C(e,{src:i})),e._lazyRace&&delete e._lazyRace,w(e,o.lazyClass),_((function(){var t=e.complete&&e.naturalWidth>1;h&&!t||(t&&y(e,o.fastLoadedClass),ie(f),e._lazyCache=!0,l((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&X--}),!0)})),fe=function(e){if(!e._lazyRace){var t,n=$.test(e.nodeName),r=n&&(e[c](o.sizesAttr)||e[c]("sizes")),a="auto"==r;(!a&&F||!n||!e[c]("src")&&!e.srcset||e.complete||v(e,o.errorClass)||!v(e,o.lazyClass))&&(t=E(e,"lazyunveilread").detail,a&&j.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,X++,pe(e,t,a,r,n))}},de=x((function(){o.loadMode=3,ae()})),he=function(){3==o.loadMode&&(o.loadMode=2),de()},me=function(){F||(n.now()-z<999?l(me,999):(F=!0,o.loadMode=3,ae(),u("scroll",he,!0)))},{_:function(){z=n.now(),r.elements=t.getElementsByClassName(o.lazyClass),I=t.getElementsByClassName(o.lazyClass+" "+o.preloadClass),u("scroll",ae,!0),u("resize",ae,!0),u("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+o.loadingClass);n.length&&n.forEach&&p((function(){n.forEach((function(e){e.complete&&fe(e)}))}))}})),e.MutationObserver?new MutationObserver(ae).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s]("DOMNodeInserted",ae,!0),a[s]("DOMAttrModified",ae,!0),setInterval(ae,999)),u("hashchange",ae,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,ae,!0)})),/d$|^c/.test(t.readyState)?me():(u("load",me),t[s]("DOMContentLoaded",ae),l(me,2e4)),r.elements.length?(oe(),_._lsFlush()):ae()},checkElems:ae,unveil:fe,_aLSL:he}),j=(D=R((function(e,t,n,r){var o,a,i;if(e._lazysizesWidth=r,r+="px",e.setAttribute("sizes",r),d.test(t.nodeName||""))for(a=0,i=(o=t.getElementsByTagName("source")).length;a<i;a++)o[a].setAttribute("sizes",r);n.detail.dataAttr||C(e,n.detail)})),N=function(e,t,n){var r,o=e.parentNode;o&&(n=P(e,o,n),(r=E(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=r.detail.width)&&n!==e._lazysizesWidth&&D(e,o,r,n))},T=x((function(){var e,t=A.length;if(t)for(e=0;e<t;e++)N(A[e])})),{_:function(){A=t.getElementsByClassName(o.autosizesClass),u("resize",T)},checkElems:T,updateElem:N}),L=function(){!L.i&&t.getElementsByClassName&&(L.i=!0,j._(),O._())};var A,D,N,T;var I,F,U,M,z,W,q,H,B,Z,G,Q,$,J,V,K,Y,X,ee,te,ne,re,oe,ae,ie,se,ce,ue,le,pe,fe,de,he,me;var ge,ve,ye,we,be,Ee,Ce;return l((function(){o.init&&L()})),r={cfg:o,autoSizer:j,loader:O,init:L,uP:C,aC:y,rC:w,hC:v,fire:E,gW:P,rAF:_}}(t,t.document,Date);t.lazySizes=r,e.exports&&(e.exports=r)}("undefined"!=typeof window?window:{})},2203:function(e,t,n){"use strict";const r=n(8936),o=n(7091),a=n(4734),i=n(8616);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=a?u(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:u(i,t),n(u(e,t),i,r)}for(const o of Object.keys(r)){const e=r[o];if("object"==typeof e&&null!==e)for(const n of Object.keys(e))e[n]=d(e[n],t);else r[o]=d(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",o,"]"].join("")]:[...n,[c(t,e),"[",c(o,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[c(t,e),"=",c(r,e)].join("")]:[[n,c(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),o={};for(const i of Object.keys(e))n(i)||(o[i]=e[i]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?c(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):c(n,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=p(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let s=t.stringify(i,n);s&&(s="?".concat(s));let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(c(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:o,query:a,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:i(a,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},4734:function(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},8936:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},8037:function(e,t,n){"use strict";var r=n(4836);t.dq=m,t.mc=function(e){return m(e,g())},t.c4=t.ZP=void 0;var o=r(n(7071)),a=r(n(6115)),i=r(n(7867)),s=r(n(434)),c=r(n(5697)),u=r(n(7294)),l=n(9499),p=n(2098),f=n(1752);t.cP=f.parsePath;var d=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"],h=function(e){return null==e?void 0:e.startsWith("/")};function m(e,t){var n,r;if(void 0===t&&(t=v()),!y(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;var o=null!==(n=null!==(r=t)&&void 0!==r?r:g())&&void 0!==n?n:"/";return""+(null!=o&&o.endsWith("/")?o.slice(0,-1):o)+(e.startsWith("/")?e:"/"+e)}var g=function(){return""},v=function(){return""},y=function(e){return e&&!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("//")};var w=function(e,t){return"number"==typeof e?e:y(e)?h(e)?m(e):function(e,t){return h(e)?e:(0,p.resolve)(e,t)}(e,t):e},b={activeClassName:c.default.string,activeStyle:c.default.object,partiallyActive:c.default.bool};function E(e){return u.default.createElement(l.Location,null,(function(t){var n=t.location;return u.default.createElement(C,(0,s.default)({},e,{_location:n}))}))}var C=function(e){function t(t){var n;(n=e.call(this,t)||this).defaultGetProps=function(e){var t=e.isPartiallyCurrent,r=e.isCurrent;return(n.props.partiallyActive?t:r)?{className:[n.props.className,n.props.activeClassName].filter(Boolean).join(" "),style:(0,s.default)({},n.props.style,n.props.activeStyle)}:null};var r=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&(r=!0),n.state={IOSupported:r},n.handleRef=n.handleRef.bind((0,a.default)(n)),n}(0,i.default)(t,e);var n=t.prototype;return n._prefetch=function(){var e=window.location.pathname;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname);var t=w(this.props.to,e),n=(0,f.parsePath)(t).pathname;e!==n&&___loader.enqueue(n)},n.componentDidUpdate=function(e,t){this.props.to===e.to||this.state.IOSupported||this._prefetch()},n.componentDidMount=function(){this.state.IOSupported||this._prefetch()},n.componentWillUnmount=function(){if(this.io){var e=this.io,t=e.instance,n=e.el;t.unobserve(n),t.disconnect()}},n.handleRef=function(e){var t,n,r,o=this;this.props.innerRef&&this.props.innerRef.hasOwnProperty("current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=(t=e,n=function(){o._prefetch()},(r=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(t),r.disconnect(),n())}))}))).observe(t),{instance:r,el:t}))},n.render=function(){var e=this,t=this.props,n=t.to,r=t.getProps,a=void 0===r?this.defaultGetProps:r,i=t.onClick,c=t.onMouseEnter,p=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),h=t.replace,m=t._location,g=(0,o.default)(t,d);var v=w(n,m.pathname);return y(v)?u.default.createElement(l.Link,(0,s.default)({to:v,state:p,getProps:a,innerRef:this.handleRef,onMouseEnter:function(e){c&&c(e),___loader.hovering((0,f.parsePath)(v).pathname)},onClick:function(t){if(i&&i(t),!(0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();var n=h,r=encodeURI(v)===m.pathname;"boolean"!=typeof h&&r&&(n=!0),window.___navigate(v,{state:p,replace:n})}return!0}},g)):u.default.createElement("a",(0,s.default)({href:v},g))},t}(u.default.Component);C.propTypes=(0,s.default)({},b,{onClick:c.default.func,to:c.default.string.isRequired,replace:c.default.bool,state:c.default.object});var S=u.default.forwardRef((function(e,t){return u.default.createElement(E,(0,s.default)({innerRef:t},e))}));t.ZP=S;t.c4=function(e,t){window.___navigate(w(e,window.location.pathname),t)}},1752:function(e,t){"use strict";t.__esModule=!0,t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");-1!==a&&(n=t.substr(a),t=t.substr(0,a));return{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}},9679:function(e,t,n){"use strict";t.p2=t.$C=void 0;var r=n(1432);t.$C=r.ScrollHandler;var o=n(4855);t.p2=o.useScrollRestoration},1432:function(e,t,n){"use strict";var r=n(4836);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(6115)),a=r(n(7867)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(7294)),s=r(n(5697)),c=n(1142);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var l=i.createContext(new c.SessionStorage);t.ScrollContext=l,l.displayName="GatsbyScrollContext";var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new c.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,o.default)(t),e,n)},t}(0,a.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),e?this.windowScroll(e,void 0):r&&this.scrollToHash(decodeURI(r),void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return i.createElement(l.Provider,{value:this._stateStorage},this.props.children)},t}(i.Component);t.ScrollHandler=p,p.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},1142:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(a){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),a=JSON.stringify(r);try{window.sessionStorage.setItem(o,a)}catch(i){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(a)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},4855:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,a.useLocation)(),n=(0,o.useContext)(r.ScrollContext),i=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(i.current){var r=n.read(t,e);i.current.scrollTo(0,r||0)}}),[t.key]),{ref:i,onScroll:function(){i.current&&n.save(t,e,i.current.scrollTop)}}};var r=n(1432),o=n(7294),a=n(9499)},4999:function(e,t,n){t.components={"component---cache-caches-gatsby-plugin-offline-app-shell-js":()=>n.e(306).then(n.bind(n,1930)),"component---src-pages-404-js":()=>Promise.all([n.e(532),n.e(37),n.e(883)]).then(n.bind(n,9616)),"component---src-pages-index-js":()=>Promise.all([n.e(532),n.e(37),n.e(678)]).then(n.bind(n,7704)),"component---src-pages-projects-js":()=>Promise.all([n.e(532),n.e(37),n.e(853)]).then(n.bind(n,7744)),"component---src-templates-project-template-js":()=>Promise.all([n.e(532),n.e(890)]).then(n.bind(n,4579)),"component---src-templates-resume-template-js":()=>Promise.all([n.e(532),n.e(891)]).then(n.bind(n,7706))}},5182:function(e,t,n){e.exports=[{plugin:n(6988),options:{plugins:[]}},{plugin:n(992),options:{plugins:[],name:"Nick Sinclair",short_name:"Portfolio",start_url:"/",background_color:"#ffff33",theme_color:"#ffff33",display:"minimal-ui",icon:"src/images/[email protected]",icon_options:{purpose:"any maskable"},legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"09b50f79a52b7e828b8feb22bbfa97a4"}},{plugin:n(7996),options:{plugins:[],precachePages:["/projects/*","/resume/"]}},{plugin:n(8454),options:{plugins:[]}},{plugin:n(4365),options:{plugins:[]}},{plugin:n(3938),options:{plugins:[],password:"itential",partialMatching:!0,pagePaths:["/projects/itential"]}},{plugin:n(3207),options:{plugins:[],maxWidth:1e3,quality:100,showCaptions:!1,linkImagesToOriginal:!0,markdownCaptions:!1,sizeByPixelDensity:!1,backgroundColor:"white",withWebp:!1,tracedSVG:!1,loading:"lazy",disableBgImageOnAlpha:!1,disableBgImage:!1}},{plugin:n(9037),options:{plugins:[]}}]},7343:function(e,t,n){const r=n(5182),{getResourceURLsForPathname:o,loadPage:a,loadPageSync:i}=n(5894).jN;t.h=function(e,t,n,s){void 0===t&&(t={});let c=r.map((n=>{if(!n.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=a,t.loadPageSync=i;const r=n.plugin[e](t,n.options);return r&&s&&(t=s({args:t,result:r,plugin:n})),r}));return c=c.filter((e=>void 0!==e)),c.length>0?c:n?[n]:[]},t.I=(e,t,n)=>r.reduce(((n,r)=>r.plugin[e]?n.then((()=>r.plugin[e](t,r.options))):n),Promise.resolve())},8110:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}()},2257:function(e,t,n){"use strict";n.d(t,{UD:function(){return f},Cj:function(){return h},GA:function(){return d},DS:function(){return p}});var r=n(2098),o=n(1578),a=e=>void 0===e?e:"/"===e?"/":"/"===e.charAt(e.length-1)?e.slice(0,-1):e,i=n(969);const s=new Map;let c=[];const u=e=>{const t=decodeURIComponent(e);return(0,o.Z)(t,decodeURIComponent("")).split("#")[0].split("?")[0]};function l(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const p=e=>{c=e},f=e=>{const t=m(e),n=c.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),o=(0,r.pick)(n,t);return o?a(o.route.originalPath):null},d=e=>{const t=m(e),n=c.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),o=(0,r.pick)(n,t);return o?o.params:{}},h=e=>{const t=u(l(e));if(s.has(t))return s.get(t);const n=(0,i.J)(e);if(n)return h(n.toPath);let r=f(t);return r||(r=m(e)),s.set(t,r),r},m=e=>{let t=u(l(e));return"/index.html"===t&&(t="/"),t=a(t),t}},5444:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o.ZP},PageRenderer:function(){return s.a},StaticQuery:function(){return p},StaticQueryContext:function(){return u},graphql:function(){return d},navigate:function(){return o.c4},parsePath:function(){return o.cP},prefetchPathname:function(){return c},useScrollRestoration:function(){return a.p2},useStaticQuery:function(){return f},withAssetPrefix:function(){return o.mc},withPrefix:function(){return o.dq}});var r=n(7294),o=n(8037),a=n(9679),i=n(861),s=n.n(i);const c=n(5894).ZP.enqueue,u=r.createContext({});function l(e){let{staticQueryData:t,data:n,query:o,render:a}=e;const i=n?n.data:t[o]&&t[o].data;return r.createElement(r.Fragment,null,i&&a(i),!i&&r.createElement("div",null,"Loading (StaticQuery)"))}const p=e=>{const{data:t,query:n,render:o,children:a}=e;return r.createElement(u.Consumer,null,(e=>r.createElement(l,{data:t,query:n,render:o||a,staticQueryData:e})))},f=e=>{var t;r.useContext;const n=r.useContext(u);if(isNaN(Number(e)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+e+"`);\n");if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};function d(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}},5894:function(e,t,n){"use strict";n.d(t,{uQ:function(){return p},kL:function(){return w},ZP:function(){return C},hs:function(){return S},jN:function(){return E},N1:function(){return b}});var r=n(1721);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const i=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise(((n,r)=>{if("undefined"==typeof document)return void r();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),o.onload=n,o.onerror=r;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=()=>{200===r.status?t():n()},r.send(null)}))},s={};var c=function(e,t){return new Promise((n=>{s[e]?n():i(e,t).then((()=>{n(),s[e]=!0})).catch((()=>{}))}))},u=n(8110),l=n(2257);const p={Error:"error",Success:"success"},f=e=>e&&e.default||e,d=e=>"/page-data/"+("/"===e?"index":(e=>(e="/"===e[0]?e.slice(1):e).endsWith("/")?e.slice(0,-1):e)(e))+"/page-data.json";function h(e,t){return void 0===t&&(t="GET"),new Promise(((n,r)=>{const o=new XMLHttpRequest;o.open(t,e,!0),o.onreadystatechange=()=>{4==o.readyState&&n(o)},o.send(null)}))}const m=function(e,t){void 0===t&&(t=null);const n={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes};return{component:t,json:e.result,page:n}};let g=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,l.DS)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=h(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then((t=>(this.inFlightNetworkRequests.delete(e),t))).catch((t=>{throw this.inFlightNetworkRequests.delete(e),t}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((e=>e))},t.fetchPageDataJson=function(e){const{pagePath:t,retries:n=0}=e,r=d(t);return this.memoizedGet(r).then((r=>{const{status:o,responseText:a}=r;if(200===o)try{const t=JSON.parse(a);if(void 0===t.path)throw new Error("not a valid pageData response");return Object.assign(e,{status:p.Success,payload:t})}catch(i){}return 404===o||200===o?"/404.html"===t?Object.assign(e,{status:p.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?Object.assign(e,{status:p.Error}):n<3?this.fetchPageDataJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:p.Error})}))},t.loadPageDataJson=function(e){const t=(0,l.Cj)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then((e=>(this.pageDataDb.set(t,e),e)))},t.findMatchPath=function(e){return(0,l.UD)(e)},t.loadPage=function(e){const t=(0,l.Cj)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?{error:e.error,status:e.status}:Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const n=Promise.all([this.loadAppData(),this.loadPageDataJson(t)]).then((e=>{const n=e[1];if(n.status===p.Error)return{status:p.Error};let r=n.payload;const{componentChunkName:o,staticQueryHashes:a=[]}=r,i={},s=this.loadComponent(o).then((t=>{let o;return i.createdAt=new Date,!t||t instanceof Error?(i.status=p.Error,i.error=t):(i.status=p.Success,!0===n.notFound&&(i.notFound=!0),r=Object.assign(r,{webpackCompilationHash:e[0]?e[0].webpackCompilationHash:""}),o=m(r,t)),o})),c=Promise.all(a.map((e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet("/page-data/sq/d/"+e+".json").then((t=>{const n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}})).catch((()=>{throw new Error("We couldn't load \"/page-data/sq/d/"+e+'.json"')}))}))).then((e=>{const t={};return e.forEach((e=>{let{staticQueryHash:n,jsonPayload:r}=e;t[n]=r,this.staticQueryDb[n]=r})),t}));return Promise.all([s,c]).then((e=>{let n,[r,o]=e;return r&&(n={...r,staticQueryResults:o},i.payload=n,u.Z.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(t,i),i.error?{error:i.error,status:i.status}:n})).catch((e=>({error:e,status:p.Error})))}));return n.then((()=>{this.inFlightDb.delete(t)})).catch((e=>{throw this.inFlightDb.delete(t),e})),this.inFlightDb.set(t,n),n},t.loadPageSync=function(e,t){void 0===t&&(t={});const n=(0,l.Cj)(e);if(this.pageDb.has(n)){var r;const e=this.pageDb.get(n);if(e.payload)return e.payload;if(null!==(r=t)&&void 0!==r&&r.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&!this.pageDb.has(e)},t.prefetch=function(e){if(!this.shouldPrefetch(e))return!1;if(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled)return!1;const t=(0,l.Cj)(e);return this.doPrefetch(t).then((()=>{this.prefetchCompleted.has(e)||(this.apiRunner("onPostPrefetchPathname",{pathname:e}),this.prefetchCompleted.add(e))})),!0},t.doPrefetch=function(e){const t=d(e);return c(t,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(e)))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,l.Cj)(e),n=this.pageDataDb.get(t);if(n){const e=m(n.payload);return[].concat(a(v(e.page.componentChunkName)),[d(t)])}return null},t.isPageNotFound=function(e){const t=(0,l.Cj)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then((t=>{const{status:n,responseText:r}=t;let o;if(200!==n&&e<3)return this.loadAppData(e+1);if(200===n)try{const e=JSON.parse(r);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");o=e}catch(a){}return o}))},e}();const v=e=>(window.___chunkMapping[e]||[]).map((e=>""+e));let y,w=function(e){function t(t,n,r){var o;return o=e.call(this,(e=>{if(!t.components[e])throw new Error("We couldn't find the correct component chunk with the name "+e);return t.components[e]().then(f).catch((e=>e))}),n)||this,r&&o.pageDataDb.set(r.path,{pagePath:r.path,payload:r,status:"success"}),o}(0,r.Z)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((e=>{if(e.status!==p.Success)return Promise.resolve();const t=e.payload,n=t.componentChunkName,r=v(n);return Promise.all(r.map(c)).then((()=>t))}))},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((e=>e.notFound?h(t,"HEAD").then((t=>200===t.status?{status:p.Error}:e)):e))},t}(g);const b=e=>{y=e},E={enqueue:e=>y.prefetch(e),getResourceURLsForPathname:e=>y.getResourceURLsForPathname(e),loadPage:e=>y.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),y.loadPageSync(e,t)},prefetch:e=>y.prefetch(e),isPageNotFound:e=>y.isPageNotFound(e),hovering:e=>y.hovering(e),loadAppData:()=>y.loadAppData()};var C=E;function S(){return y?y.staticQueryDb:{}}},804:function(e,t,n){"use strict";var r=n(1721),o=n(7294),a=n(7343),i=n(2257);let s=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){const e={...this.props,params:{...(0,i.GA)(this.props.location.pathname),...this.props.pageResources.json.pageContext.__params}},t=(0,o.createElement)(this.props.pageResources.component,{...e,key:this.props.path||this.props.pageResources.page.path});return(0,a.h)("wrapPageElement",{element:t,props:e},t,(t=>{let{result:n}=t;return{element:n,props:e}})).pop()},t}(o.Component);t.Z=s},9917:function(e,t,n){"use strict";var r=n(1721),o=n(7343),a=n(7294),i=n(3935),s=n(9499),c=n(9679),u=n(5444),l=n(5894),p=n(969),f=n(8110);const d={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var h=n(2393),m=n(8037);function g(e){const t=(0,p.J)(e),{hash:n,search:r}=window.location;return null!=t&&(window.___replace(t.toPath+r+n),!0)}let v="";window.addEventListener("unhandledrejection",(e=>{/loading chunk \d* failed./i.test(e.reason)&&v&&(window.location.pathname=v)}));const y=(e,t)=>{g(e.pathname)||(v=e.pathname,(0,o.h)("onPreRouteUpdate",{location:e,prevLocation:t}))},w=(e,t)=>{g(e.pathname)||(0,o.h)("onRouteUpdate",{location:e,prevLocation:t})},b=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void h.V5.navigate(e);const{pathname:n,search:r,hash:a}=(0,m.cP)(e),i=(0,p.J)(n);if(i&&(e=i.toPath+r+a),window.___swUpdated)return void(window.location=n+r+a);const c=setTimeout((()=>{f.Z.emit("onDelayedLoadPageResources",{pathname:n}),(0,o.h)("onRouteUpdateDelayed",{location:window.location})}),1e3);l.ZP.loadPage(n).then((o=>{if(!o||o.status===l.uQ.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(c);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=n+r+a),(0,s.navigate)(e,t),clearTimeout(c)}))};function E(e,t){let{location:n}=t;const{pathname:r,hash:a}=n,i=(0,o.h)("shouldUpdateScroll",{prevRouterProps:e,pathname:r,routerProps:{location:n},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(i.length>0)return i[i.length-1];if(e){const{location:{pathname:t}}=e;if(t===r)return a?decodeURI(a.slice(1)):[0,0]}return!0}let C=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=a.createRef(),n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){requestAnimationFrame((()=>{let e="new page at "+this.props.location.pathname;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const n="Navigated to "+e;if(this.announcementRef.current){this.announcementRef.current.innerText!==n&&(this.announcementRef.current.innerText=n)}}))},n.render=function(){return a.createElement("div",Object.assign({},d,{ref:this.announcementRef}))},t}(a.Component);const S=(e,t)=>{var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)};let P=function(e){function t(t){var n;return n=e.call(this,t)||this,y(t.location,null),n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){w(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!S(e.location,this.props.location)&&(y(this.props.location,e.location),!0)},n.componentDidUpdate=function(e){S(e.location,this.props.location)&&w(this.props.location,e.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(C,{location:location}))},t}(a.Component);var _=n(804),R=n(4999);function k(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var x=function(e){function t(t){var n;n=e.call(this)||this;const{location:r,pageResources:o}=t;return n.state={location:{...r},pageResources:o||l.ZP.loadPageSync(r.pathname,{withErrorDetails:!0})},n}(0,r.Z)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:n}=e;if(t.location.href!==n.href){return{pageResources:l.ZP.loadPageSync(n.pathname,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=t.prototype;return n.loadResources=function(e){l.ZP.loadPage(e).then((t=>{t&&t.status!==l.uQ.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)}))},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return k(e.props,t)||k(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname),!1)},n.render=function(){return this.props.children(this.state)},t}(a.Component),O=n(1578);const j=new l.kL(R,[],window.pageData);(0,l.N1)(j),j.setApiRunner(o.h),window.asyncRequires=R,window.___emitter=f.Z,window.___loader=l.jN,h.V5.listen((e=>{e.location.action=e.action})),window.___push=e=>b(e,{replace:!1}),window.___replace=e=>b(e,{replace:!0}),window.___navigate=(e,t)=>b(e,t),g(window.location.pathname),(0,o.I)("onClientEntry").then((()=>{(0,o.h)("registerServiceWorker").filter(Boolean).length>0&&n(154);const e=e=>a.createElement(s.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(_.Z,e)),t=a.createContext({});let p=function(e){function n(){return e.apply(this,arguments)||this}return(0,r.Z)(n,e),n.prototype.render=function(){const{children:e}=this.props;return a.createElement(s.Location,null,(n=>{let{location:r}=n;return a.createElement(x,{location:r},(n=>{let{pageResources:r,location:o}=n;const i=(0,l.hs)();return a.createElement(u.StaticQueryContext.Provider,{value:i},a.createElement(t.Provider,{value:{pageResources:r,location:o}},e))}))}))},n}(a.Component),f=function(n){function o(){return n.apply(this,arguments)||this}return(0,r.Z)(o,n),o.prototype.render=function(){return a.createElement(t.Consumer,null,(t=>{let{pageResources:n,location:r}=t;return a.createElement(P,{location:r},a.createElement(c.$C,{location:r,shouldUpdateScroll:E},a.createElement(s.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},a.createElement(e,Object.assign({path:"/404.html"===n.page.path?(0,O.Z)(r.pathname,""):encodeURI(n.page.matchPath||n.page.path)},this.props,{location:r,pageResources:n},n.json)))))}))},o}(a.Component);const{pagePath:d,location:h}=window;d&&""+d!==h.pathname&&!(j.findMatchPath((0,O.Z)(h.pathname,""))||"/404.html"===d||d.match(/^\/404\/?$/)||d.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,s.navigate)(""+d+h.search+h.hash,{replace:!0}),l.jN.loadPage(h.pathname).then((e=>{if(!e||e.status===l.uQ.Error){const t="page resources for "+h.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}window.___webpackCompilationHash=e.page.webpackCompilationHash;const t=(0,o.h)("wrapRootElement",{element:a.createElement(f,null)},a.createElement(f,null),(e=>{let{result:t}=e;return{element:t}})).pop(),n=function(){const e=a.useRef(!1);return a.useEffect((()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.h)("onInitialClientRender"))}),[]),a.createElement(p,null,t)},r=(0,o.h)("replaceHydrateFunction",void 0,i.hydrateRoot?i.hydrateRoot:i.hydrate)[0];function s(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;r===i.hydrateRoot?r(e,a.createElement(n,null)):r(a.createElement(n,null),e)}const c=document;if("complete"===c.readyState||"loading"!==c.readyState&&!c.documentElement.doScroll)setTimeout((function(){s()}),0);else{const e=function(){c.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),s()};c.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}}))}))},6947:function(e,t,n){"use strict";n.r(t);var r=n(7294),o=n(5894),a=n(804);t.default=e=>{let{location:t}=e;const n=o.ZP.loadPageSync(t.pathname);return n?r.createElement(a.Z,{location:t,pageResources:n,...n.json}):null}},861:function(e,t,n){var r;e.exports=(r=n(6947))&&r.default||r},3639:function(e,t){t.O=e=>e},969:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});const r=new Map,o=new Map;function a(e){let t=r.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach((e=>{e.ignoreCase?o.set(e.fromPath,e):r.set(e.fromPath,e)}))},154:function(e,t,n){"use strict";n.r(t);var r=n(7343);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(e){e.addEventListener("updatefound",(()=>{(0,r.h)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.h)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.h)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.h)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.h)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},1578:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}n.d(t,{Z:function(){return r}})},9037:function(e,t,n){"use strict";n.r(t);n(9398)},3938:function(e,t,n){"use strict";n.r(t),n.d(t,{wrapPageElement:function(){return l}});var r=n(7294),o=n(8663),a=n.n(o),i=n(2203);const s="gatsby-theme-password-protect";var c=n(5444);var u=()=>{const{0:e,1:t}=(0,r.useState)("");return r.createElement("div",{className:"site-container"},r.createElement("div",{className:"content"},r.createElement(c.Link,{to:"/projects"},"← Back to Projects"),r.createElement("div",{className:"password"},r.createElement("h1",null,"PROTECTED CONTENT"),r.createElement("h4",null,"Please enter the password to view this page."),r.createElement("form",{onSubmit:t=>{var n;t.preventDefault(),n=e,a().set(s,n),window.location.reload()},style:{width:"320px"}},r.createElement("input",{name:"password",type:"password",value:e,onChange:e=>t(e.target.value)}),r.createElement("button",{type:"submit"},"Go To Page")))))};const l=(e,t)=>{let{props:n}=e;const{password:o,pagePaths:c,partialMatching:l}=t,{location:p}=n;if(!o)return;if(c&&c.length>0&&!((e,t,n)=>{let{pathname:r}=e;return t.find((e=>n&&"/"!==r?r.startsWith(e):e===r))})(p,c,l))return;const f=(e=>{const{secret:t}=i.parse(e.search);return t})(p)||a().get(s);return f!==o?r.createElement(u,null):void 0}},9564:function(e,t,n){"use strict";var r=n(4836);t.__esModule=!0,t.default=function(e,t,n){var r=m(n,t);return e.addEventListener("click",r),function(){return e.removeEventListener("click",r)}},t.routeThroughBrowserOrApp=t.hashShouldBeFollowed=t.pathIsNotHandledByApp=t.urlsAreOnSameOrigin=t.authorIsForcingNavigation=t.anchorsTargetIsEquivalentToSelf=t.findClosestAnchor=t.navigationWasHandledElsewhere=t.slashedPathname=t.userIsForcingNavigation=void 0;var o=r(n(9382)),a=n(5444),i=function(e){return 0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey};t.userIsForcingNavigation=i;var s=function(e){return"/"===e[0]?e:"/"+e};t.slashedPathname=s;var c=function(e){return e.defaultPrevented};t.navigationWasHandledElsewhere=c;var u=function(e){for(;e.parentNode;e=e.parentNode)if("a"===e.nodeName.toLowerCase())return e;return null};t.findClosestAnchor=u;var l=function(e){return!1===e.hasAttribute("target")||null==e.target||["_self",""].includes(e.target)||"_parent"===e.target&&(!e.ownerDocument.defaultView.parent||e.ownerDocument.defaultView.parent===e.ownerDocument.defaultView)||"_top"===e.target&&(!e.ownerDocument.defaultView.top||e.ownerDocument.defaultView.top===e.ownerDocument.defaultView)};t.anchorsTargetIsEquivalentToSelf=l;var p=function(e){return!0===e.hasAttribute("download")||!1===l(e)};t.authorIsForcingNavigation=p;var f=function(e,t){return e.protocol===t.protocol&&e.host===t.host};t.urlsAreOnSameOrigin=f;var d=function(e,t){return!1===t.test(s(e.pathname))||-1!==e.pathname.search(/^.*\.((?!htm)[a-z0-9]{1,5})$/i)};t.pathIsNotHandledByApp=d;var h=function(e,t){return""!==t.hash&&(""===t.pathname||t.pathname===e.pathname)};t.hashShouldBeFollowed=h;var m=function(e,t){return function(n){if(window.___failedResources)return!0;if(i(n))return!0;if(c(n))return!0;var r=u(n.target);if(null==r)return!0;if(p(r))return!0;var l=document.createElement("a");""!==r.href&&(l.href=r.href),"SVGAnimatedString"in window&&r.href instanceof SVGAnimatedString&&(l.href=r.href.animVal);var m=document.createElement("a");if(m.href=window.location.href,!1===f(m,l))return!0;var g=new RegExp("^"+(0,o.default)((0,a.withPrefix)("/")));if(d(l,g))return!0;if(h(m,l))return!0;if(t.excludePattern&&new RegExp(t.excludePattern).test(l.pathname))return!0;n.preventDefault();var v=s(l.pathname).replace(g,"/");return e(""+v+l.search+l.hash),!1}};t.routeThroughBrowserOrApp=m},4365:function(e,t,n){"use strict";var r=n(4836),o=n(5444),a=r(n(9564));t.onClientEntry=function(e,t){void 0===t&&(t={}),(0,a.default)(window,t,(function(e){(0,o.navigate)(e)}))}},9382:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},8454:function(e,t,n){"use strict";n.r(t),n.d(t,{wrapRootElement:function(){return o}});var r=n(7294);n(3935);const o=e=>{let{element:t}=e;return r.createElement(r.Fragment,null,t)}},6125:function(e,t,n){"use strict";n.d(t,{G:function(){return A},L:function(){return b},M:function(){return k},P:function(){return R},S:function(){return U},_:function(){return u},a:function(){return s},b:function(){return m},c:function(){return M},d:function(){return h},g:function(){return g}});var r=n(7294),o=(n(4041),n(4811),n(5697)),a=n.n(o),i=n(3935);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var l=new Set,p=function(){return"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype};function f(e){e&&l.add(e)}function d(e){return l.has(e)}var h=function(e){var t;return function(e){var t,n;return Boolean(null==e||null==(t=e.images)||null==(n=t.fallback)?void 0:n.src)}(e)?e:function(e){return Boolean(null==e?void 0:e.gatsbyImageData)}(e)?e.gatsbyImageData:null==e||null==(t=e.childImageSharp)?void 0:t.gatsbyImageData};function m(e,t,r,o,a,i,c,u){var l,p;return void 0===u&&(u={}),null!=c&&c.current&&!("objectFit"in document.documentElement.style)&&(c.current.dataset.objectFit=null!=(l=u.objectFit)?l:"cover",c.current.dataset.objectPosition=""+(null!=(p=u.objectPosition)?p:"50% 50%"),function(e){try{var t=function(){window.objectFitPolyfill(e.current)},r=function(){if(!("objectFitPolyfill"in window))return Promise.resolve(n.e(231).then(n.t.bind(n,7231,23))).then((function(){}))}();Promise.resolve(r&&r.then?r.then(t):t())}catch(e){return Promise.reject(e)}}(c)),s({},r,{loading:o,shouldLoad:e,"data-main-image":"",style:s({},u,{opacity:t?1:0}),onLoad:function(e){if(!t){f(i);var n=e.currentTarget,r=new Image;r.src=n.currentSrc,r.decode?r.decode().catch((function(){})).then((function(){a(!0)})):a(!0)}},ref:c})}function g(e,t,n,r,o,a,i,c){var u={};a&&(u.backgroundColor=a,"fixed"===n?(u.width=r,u.height=o,u.backgroundColor=a,u.position="relative"):("constrained"===n||"fullWidth"===n)&&(u.position="absolute",u.top=0,u.left=0,u.bottom=0,u.right=0)),i&&(u.objectFit=i),c&&(u.objectPosition=c);var l=s({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:s({opacity:t?0:1,transition:"opacity 500ms linear"},u)});return l}var v,y=["children"],w=function(e){var t=e.layout,n=e.width,o=e.height;return"fullWidth"===t?r.createElement("div",{"aria-hidden":!0,style:{paddingTop:o/n*100+"%"}}):"constrained"===t?r.createElement("div",{style:{maxWidth:n,display:"block"}},r.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:"data:image/svg+xml;charset=utf-8,%3Csvg height='"+o+"' width='"+n+"' xmlns='http://www.w3.org/2000/svg' version='1.1'%3E%3C/svg%3E",style:{maxWidth:"100%",display:"block",position:"static"}})):null},b=function(e){var t=e.children,n=u(e,y);return r.createElement(r.Fragment,null,r.createElement(w,s({},n)),t,!1)},E=["src","srcSet","loading","alt","shouldLoad","innerRef"],C=["fallback","sources","shouldLoad"],S=function(e){var t=e.src,n=e.srcSet,o=e.loading,a=e.alt,i=void 0===a?"":a,c=e.shouldLoad,l=e.innerRef,p=u(e,E);return r.createElement("img",s({},p,{decoding:"async",loading:o,src:c?t:void 0,"data-src":c?void 0:t,srcSet:c?n:void 0,"data-srcset":c?void 0:n,alt:i,ref:l}))},P=(0,r.forwardRef)((function(e,t){var n=e.fallback,o=e.sources,a=void 0===o?[]:o,i=e.shouldLoad,c=void 0===i||i,l=u(e,C),p=l.sizes||(null==n?void 0:n.sizes),f=r.createElement(S,s({},l,n,{sizes:p,shouldLoad:c,innerRef:t}));return a.length?r.createElement("picture",null,a.map((function(e){var t=e.media,n=e.srcSet,o=e.type;return r.createElement("source",{key:t+"-"+o+"-"+n,type:o,media:t,srcSet:c?n:void 0,"data-srcset":c?void 0:n,sizes:p})})),f):f}));S.propTypes={src:o.string.isRequired,alt:o.string.isRequired,sizes:o.string,srcSet:o.string,shouldLoad:o.bool},P.displayName="Picture",P.propTypes={alt:o.string.isRequired,shouldLoad:o.bool,fallback:o.exact({src:o.string.isRequired,srcSet:o.string,sizes:o.string}),sources:o.arrayOf(o.oneOfType([o.exact({media:o.string.isRequired,type:o.string,sizes:o.string,srcSet:o.string.isRequired}),o.exact({media:o.string,type:o.string.isRequired,sizes:o.string,srcSet:o.string.isRequired})]))};var _=["fallback"],R=function(e){var t=e.fallback,n=u(e,_);return t?r.createElement(P,s({},n,{fallback:{src:t},"aria-hidden":!0,alt:""})):r.createElement("div",s({},n))};R.displayName="Placeholder",R.propTypes={fallback:o.string,sources:null==(v=P.propTypes)?void 0:v.sources,alt:function(e,t,n){return e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null}};var k=(0,r.forwardRef)((function(e,t){return r.createElement(r.Fragment,null,r.createElement(P,s({ref:t},e)),r.createElement("noscript",null,r.createElement(P,s({},e,{shouldLoad:!0}))))}));k.displayName="MainImage",k.propTypes=P.propTypes;var x=function(e,t,n){return e.alt||""===e.alt?a().string.apply(a(),[e,t,n].concat([].slice.call(arguments,3))):new Error('The "alt" prop is required in '+n+'. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html')},O={image:a().object.isRequired,alt:x},j=["style","className"],L=function(e){var t,o;function a(t){var n;return(n=e.call(this,t)||this).root=(0,r.createRef)(),n.hydrated={current:!1},n.forceRender={current:!1},n.lazyHydrator=null,n.ref=(0,r.createRef)(),n.unobserveRef=void 0,n.state={isLoading:p(),isLoaded:!1},n}o=e,(t=a).prototype=Object.create(o.prototype),t.prototype.constructor=t,c(t,o);var l=a.prototype;return l._lazyHydrate=function(e,t){var r=this,o=this.root.current.querySelector("[data-gatsby-image-ssr]");return p()&&o&&!this.hydrated.current?(this.hydrated.current=!0,Promise.resolve()):n.e(503).then(n.bind(n,9503)).then((function(n){var o=n.lazyHydrate,a=JSON.stringify(r.props.image.images);r.lazyHydrator=o(s({image:e.image.images,isLoading:t.isLoading||d(a),isLoaded:t.isLoaded||d(a),toggleIsLoaded:function(){null==e.onLoad||e.onLoad(),r.setState({isLoaded:!0})},ref:r.ref},e),r.root,r.hydrated,r.forceRender)}))},l._setupIntersectionObserver=function(e){var t=this;void 0===e&&(e=!0),n.e(175).then(n.bind(n,7175)).then((function(n){var r=(0,n.createIntersectionObserver)((function(){if(t.root.current){var n=JSON.stringify(t.props.image.images);null==t.props.onStartLoad||t.props.onStartLoad({wasCached:e&&d(n)}),t.setState({isLoading:!0,isLoaded:e&&d(n)})}}));t.root.current&&(t.unobserveRef=r(t.root))}))},l.shouldComponentUpdate=function(e,t){var n=this,r=!1;return this.state.isLoading||!t.isLoading||t.isLoaded||(this.forceRender.current=!0),this.props.image.images!==e.image.images&&(this.unobserveRef&&(this.unobserveRef(),this.hydrated.current&&this.lazyHydrator&&(0,i.render)(null,this.root.current)),this.setState({isLoading:!1,isLoaded:!1},(function(){n._setupIntersectionObserver(!1)})),r=!0),this.root.current&&!r&&this._lazyHydrate(e,t),!1},l.componentDidMount=function(){if(this.root.current){var e=this.root.current.querySelector("[data-gatsby-image-ssr]"),t=JSON.stringify(this.props.image.images);if(p()&&e){var n,r;if(null==(n=(r=this.props).onStartLoad)||n.call(r,{wasCached:!1}),e.complete){var o,a;null==(o=(a=this.props).onLoad)||o.call(a),f(t)}else{var i=this;e.addEventListener("load",(function n(){e.removeEventListener("load",n),null==i.props.onLoad||i.props.onLoad(),f(t)}))}return}this._setupIntersectionObserver(!0)}},l.componentWillUnmount=function(){this.unobserveRef&&(this.unobserveRef(),this.hydrated.current&&this.lazyHydrator&&this.lazyHydrator())},l.render=function(){var e=this.props.as||"div",t=this.props.image,n=t.width,o=t.height,a=t.layout,i=function(e,t,n){var r={},o="gatsby-image-wrapper";return"fixed"===n?(r.width=e,r.height=t):"constrained"===n&&(o="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:o,"data-gatsby-image-wrapper":"",style:r}}(n,o,a),c=i.style,l=i.className,p=u(i,j),f=this.props.className;this.props.class&&(f=this.props.class);var d=function(e,t,n){var r=null;return"fullWidth"===e&&(r='<div aria-hidden="true" style="padding-top: '+n/t*100+'%;"></div>'),"constrained"===e&&(r='<div style="max-width: '+t+'px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg height=\''+n+"' width='"+t+"' xmlns='http://www.w3.org/2000/svg' version='1.1'%3E%3C/svg%3E\" style=\"max-width: 100%; display: block; position: static;\"></div>"),r}(a,n,o);return r.createElement(e,s({},p,{style:s({},c,this.props.style,{backgroundColor:this.props.backgroundColor}),className:l+(f?" "+f:""),ref:this.root,dangerouslySetInnerHTML:{__html:d},suppressHydrationWarning:!0}))},a}(r.Component),A=function(e){if(!e.image)return null;var t=e.image,n=JSON.stringify([t.width,t.height,t.layout,e.className,e.class,e.backgroundColor]);return r.createElement(L,s({key:n},e))};A.propTypes=O,A.displayName="GatsbyImage";var D,N=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions"],T=function(e,t){return"fullWidth"!==e.layout||"width"!==t&&"height"!==t||!e[t]?a().number.apply(a(),[e,t].concat([].slice.call(arguments,2))):new Error('"'+t+'" '+e[t]+" may not be passed when layout is fullWidth.")},I=new Set(["fixed","fullWidth","constrained"]),F={src:a().string.isRequired,alt:x,width:T,height:T,sizes:a().string,layout:function(e){if(void 0!==e.layout&&!I.has(e.layout))return new Error("Invalid value "+e.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}},U=(D=A,function(e){var t=e.src,n=e.__imageData,o=e.__error,a=u(e,N);return o&&console.warn(o),n?r.createElement(D,s({image:n},a)):(console.warn("Image not loaded",t),null)});function M(e){var t=e.children;return r.useEffect((function(){n.e(503).then(n.bind(n,9503))}),[]),t}U.displayName="StaticImage",U.propTypes=F},6988:function(e,t,n){"use strict";n.r(t),n.d(t,{wrapRootElement:function(){return a}});var r=n(7294),o=n(6125);function a(e){let{element:t}=e;return r.createElement(o.c,null,t)}},992:function(e,t,n){"use strict";var r=n(4836);n(5444),r(n(1632))},1632:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){var n="manifest.webmanifest";if(!Array.isArray(t))return n;var r=t.find((function(t){return e.startsWith(t.start_url)}));return r?"manifest_"+r.lang+".webmanifest":n}},7996:function(e,t){"use strict";t.registerServiceWorker=function(){return"true"!=={}.GATSBY_IS_PREVIEW};var n=/^(stylesheet|preload)$/,r=[];function o(e,t){if(!window.___swUpdated&&"serviceWorker"in navigator){var n=navigator.serviceWorker;if(null===n.controller)r.push(e);else{var o=t(e);n.controller.postMessage({gatsbyApi:"setPathResources",path:e,resources:o})}}}t.onServiceWorkerActive=function(e){var t=e.getResourceURLsForPathname,o=e.serviceWorker;if("true"!=={}.GATSBY_IS_PREVIEW)if(window.___swUpdated)o.active.postMessage({gatsbyApi:"clearPathResources"});else{var a=document.querySelectorAll("\n head > script[src],\n head > link[href],\n head > style[data-href]\n "),i=[].slice.call(a).filter((function(e){return"LINK"!==e.tagName||n.test(e.getAttribute("rel"))})).map((function(e){return e.src||e.href||e.getAttribute("data-href")})),s=[];r.forEach((function(e){var n=t(e);s.push.apply(s,n),o.active.postMessage({gatsbyApi:"setPathResources",path:e,resources:n})})),[].concat(i,s).forEach((function(e){var t=document.createElement("link");t.rel="prefetch",t.href=e,t.onload=t.remove,t.onerror=t.remove,document.head.appendChild(t)}))}},t.onRouteUpdate=function(e){var t=e.location,n=e.getResourceURLsForPathname;o(t.pathname.replace("",""),n),"serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"enableOfflineShell"})},t.onPostPrefetchPathname=function(e){o(e.pathname,e.getResourceURLsForPathname)}},2862:function(e,t){"use strict";t.DEFAULT_OPTIONS={maxWidth:650,wrapperStyle:"",backgroundColor:"white",linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,withWebp:!1,withAvif:!1,tracedSVG:!1,loading:"lazy",disableBgImageOnAlpha:!1,disableBgImage:!1},t.EMPTY_ALT="GATSBY_EMPTY_ALT",t.imageClass="gatsby-resp-image-image",t.imageWrapperClass="gatsby-resp-image-wrapper",t.imageBackgroundClass="gatsby-resp-image-background-image"},3207:function(e,t,n){"use strict";var r=n(2862),o=r.DEFAULT_OPTIONS,a=r.imageClass,i=r.imageBackgroundClass,s=r.imageWrapperClass;t.onRouteUpdate=function(e,t){for(var n=Object.assign({},o,t),r=document.querySelectorAll("."+s),c=function(e){var t=r[e],o=t.querySelector("."+i),s=t.querySelector("."+a),c=function(){o.style.transition="opacity 0.5s 0.5s",s.style.transition="opacity 0.5s",u()},u=function e(){o.style.opacity=0,s.style.opacity=1,s.style.color="inherit",s.style.boxShadow="inset 0px 0px 0px 400px "+n.backgroundColor,s.removeEventListener("load",c),s.removeEventListener("error",e)};s.style.opacity=0,s.addEventListener("load",c),s.addEventListener("error",u),s.complete&&u()},u=0;u<r.length;u++)c(u)}},9499:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContext:function(){return F},Link:function(){return Q},Location:function(){return N},LocationProvider:function(){return T},Match:function(){return X},Redirect:function(){return Y},Router:function(){return U},ServerLocation:function(){return I},createHistory:function(){return C},createMemorySource:function(){return S},globalHistory:function(){return _},isRedirect:function(){return J},matchPath:function(){return u},navigate:function(){return R},redirectTo:function(){return V},resolve:function(){return l},useLocation:function(){return ee},useMatch:function(){return re},useNavigate:function(){return te},useParams:function(){return ne}});var r=n(7294),o=n(1143),a=n.n(o),i=n(3639),s=function(e,t){return e.substr(0,t.length)===t},c=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],i=v(o),s=""===i[0],c=g(e),u=0,l=c.length;u<l;u++){var p=!1,d=c[u].route;if(d.default)r={route:d,params:{},uri:t};else{for(var m=v(d.path),y={},b=Math.max(i.length,m.length),E=0;E<b;E++){var C=m[E],S=i[E];if(h(C)){y[C.slice(1)||"*"]=i.slice(E).map(decodeURIComponent).join("/");break}if(void 0===S){p=!0;break}var P=f.exec(C);if(P&&!s){-1===w.indexOf(P[1])||a()(!1);var _=decodeURIComponent(S);y[P[1]]=_}else if(C!==S){p=!0;break}}if(!p){n={route:d,params:y,uri:"/"+i.slice(0,E).join("/")};break}}}return n||r||null},u=function(e,t){return c([{path:e}],t)},l=function(e,t){if(s(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],a=t.split("?")[0],i=v(r),c=v(a);if(""===i[0])return y(a,o);if(!s(i[0],".")){var u=c.concat(i).join("/");return y(("/"===a?"":"/")+u,o)}for(var l=c.concat(i),p=[],f=0,d=l.length;f<d;f++){var h=l[f];".."===h?p.pop():"."!==h&&p.push(h)}return y("/"+p.join("/"),o)},p=function(e,t){var n=e.split("?"),r=n[0],o=n[1],a=void 0===o?"":o,i="/"+v(r).map((function(e){var n=f.exec(e);return n?t[n[1]]:e})).join("/"),s=t.location,c=(s=void 0===s?{}:s).search,u=(void 0===c?"":c).split("?")[1]||"";return i=y(i,a,u)},f=/^:(.+)/,d=function(e){return f.test(e)},h=function(e){return e&&"*"===e[0]},m=function(e,t){return{route:e,score:e.default?0:v(e.path).reduce((function(e,t){return e+=4,!function(e){return""===e}(t)?d(t)?e+=2:h(t)?e-=5:e+=3:e+=1,e}),0),index:t}},g=function(e){return e.map(m).sort((function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index}))},v=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter((function(e){return e&&e.length>0})))&&n.length>0?"?"+n.join("&"):"")},w=["uri","path"],b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,a=t.origin,i=t.protocol,s=t.host,c=t.hostname,u=t.port,l=e.location.pathname;!l&&o&&P&&(l=new URL(o).pathname);return{pathname:encodeURI(decodeURI(l)),search:n,hash:r,href:o,origin:a,protocol:i,host:s,hostname:c,port:u,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},C=function(e,t){var n=[],r=E(e),o=!1,a=function(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function(){o=!1,a()},listen:function(t){n.push(t);var o=function(){r=E(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),function(){e.removeEventListener("popstate",o),n=n.filter((function(e){return e!==t}))}},navigate:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.state,c=i.replace,u=void 0!==c&&c;if("number"==typeof t)e.history.go(t);else{s=b({},s,{key:Date.now()+""});try{o||u?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(p){e.location[u?"replace":"assign"](t)}}r=E(e),o=!0;var l=new Promise((function(e){return a=e}));return n.forEach((function(e){return e({location:r,action:"PUSH"})})),l}}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(e)},replaceState:function(e,t,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=e},go:function(e){var t=r+e;t<0||t>a.length-1||(r=t)}}}},P=!("undefined"==typeof window||!window.document||!window.document.createElement),_=C(P?window:S()),R=_.navigate,k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function x(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(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}function L(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)}var A=function(e,t){var n=(0,r.createContext)(t);return n.displayName=e,n},D=A("Location"),N=function(e){var t=e.children;return r.createElement(D.Consumer,null,(function(e){return e?t(e):r.createElement(T,null,t)}))},T=function(e){function t(){var n,r;O(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=j(this,e.call.apply(e,[this].concat(a))),r.state={context:r.getContext(),refs:{unlisten:null}},j(r,n)}return L(t,e),t.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},t.prototype.componentDidCatch=function(e,t){if(!J(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},t.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},t.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;n._onTransitionComplete(),t.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){e.unmounted||e.setState((function(){return{context:e.getContext()}}))}))}))}))},t.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},t.prototype.render=function(){var e=this.state.context,t=this.props.children;return r.createElement(D.Provider,{value:e},"function"==typeof t?t(e):t||null)},t}(r.Component);T.defaultProps={history:_};var I=function(e){var t=e.url,n=e.children,o=t.indexOf("?"),a=void 0,i="";return o>-1?(a=t.substring(0,o),i=t.substring(o)):a=t,r.createElement(D.Provider,{value:{location:{pathname:a,search:i,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},F=A("Base",{baseuri:"/",basepath:"/",navigate:_.navigate}),U=function(e){return r.createElement(F.Consumer,null,(function(t){return r.createElement(N,null,(function(n){return r.createElement(M,k({},t,n,e))}))}))},M=function(e){function t(){return O(this,t),j(this,e.apply(this,arguments))}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,o=e.basepath,a=e.primary,i=e.children,s=(e.baseuri,e.component),u=void 0===s?"div":s,p=x(e,["location","navigate","basepath","primary","children","baseuri","component"]),f=r.Children.toArray(i).reduce((function(e,t){var n=ae(o)(t);return e.concat(n)}),[]),d=t.pathname,h=c(f,d);if(h){var m=h.params,g=h.uri,v=h.route,y=h.route.value;o=v.default?o:v.path.replace(/\*$/,"");var w=k({},m,{uri:g,location:t,navigate:function(e,t){return n(l(e,g),t)}}),b=r.cloneElement(y,w,y.props.children?r.createElement(U,{location:t,primary:a},y.props.children):void 0),E=a?W:u,C=a?k({uri:g,location:t,component:u},p):p;return r.createElement(F.Provider,{value:{baseuri:g,basepath:o,navigate:w.navigate}},r.createElement(E,C,b))}return null},t}(r.PureComponent);M.defaultProps={primary:!0};var z=A("Focus"),W=function(e){var t=e.uri,n=e.location,o=e.component,a=x(e,["uri","location","component"]);return r.createElement(z.Consumer,null,(function(e){return r.createElement(B,k({},a,{component:o,requestFocus:e,uri:t,location:n}))}))},q=!0,H=0,B=function(e){function t(){var n,r;O(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=j(this,e.call.apply(e,[this].concat(a))),r.state={},r.requestFocus=function(e){!r.state.shouldFocus&&e&&e.focus()},j(r,n)}return L(t,e),t.getDerivedStateFromProps=function(e,t){if(null==t.uri)return k({shouldFocus:!0},e);var n=e.uri!==t.uri,r=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return k({shouldFocus:n||r},e)},t.prototype.componentDidMount=function(){H++,this.focus()},t.prototype.componentWillUnmount=function(){0===--H&&(q=!0)},t.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()},t.prototype.focus=function(){var e=this.props.requestFocus;e?e(this.node):q?q=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus())},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.style),o=(t.requestFocus,t.component),a=void 0===o?"div":o,i=(t.uri,t.location,x(t,["children","style","requestFocus","component","uri","location"]));return r.createElement(a,k({style:k({outline:"none"},n),tabIndex:"-1",ref:function(t){return e.node=t}},i),r.createElement(z.Provider,{value:this.requestFocus},this.props.children))},t}(r.Component);(0,i.O)(B);var Z=function(){},G=r.forwardRef;void 0===G&&(G=function(e){return e});var Q=G((function(e,t){var n=e.innerRef,o=x(e,["innerRef"]);return r.createElement(F.Consumer,null,(function(e){e.basepath;var a=e.baseuri;return r.createElement(N,null,(function(e){var i=e.location,c=e.navigate,u=o.to,p=o.state,f=o.replace,d=o.getProps,h=void 0===d?Z:d,m=x(o,["to","state","replace","getProps"]),g=l(u,a),v=encodeURI(g),y=i.pathname===v,w=s(i.pathname,v);return r.createElement("a",k({ref:t||n,"aria-current":y?"page":void 0},m,h({isCurrent:y,isPartiallyCurrent:w,href:g,location:i}),{href:g,onClick:function(e){if(m.onClick&&m.onClick(e),ie(e)){e.preventDefault();var t=f;if("boolean"!=typeof f&&y){var n=k({},i.state),r=(n.key,x(n,["key"]));o=k({},p),a=r,t=(s=Object.keys(o)).length===Object.keys(a).length&&s.every((function(e){return a.hasOwnProperty(e)&&o[e]===a[e]}))}c(g,{state:p,replace:t})}var o,a,s}}))}))}))}));function $(e){this.uri=e}Q.displayName="Link";var J=function(e){return e instanceof $},V=function(e){throw new $(e)},K=function(e){function t(){return O(this,t),j(this,e.apply(this,arguments))}return L(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to,r=(e.from,e.replace),o=void 0===r||r,a=e.state,i=(e.noThrow,e.baseuri),s=x(e,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then((function(){var e=l(n,i);t(p(e,s),{replace:o,state:a})}))},t.prototype.render=function(){var e=this.props,t=(e.navigate,e.to),n=(e.from,e.replace,e.state,e.noThrow),r=e.baseuri,o=x(e,["navigate","to","from","replace","state","noThrow","baseuri"]),a=l(t,r);return n||V(p(a,o)),null},t}(r.Component),Y=function(e){return r.createElement(F.Consumer,null,(function(t){var n=t.baseuri;return r.createElement(N,null,(function(t){return r.createElement(K,k({},t,{baseuri:n},e))}))}))},X=function(e){var t=e.path,n=e.children;return r.createElement(F.Consumer,null,(function(e){var o=e.baseuri;return r.createElement(N,null,(function(e){var r=e.navigate,a=e.location,i=l(t,o),s=u(i,a.pathname);return n({navigate:r,location:a,match:s?k({},s.params,{uri:s.uri,path:t}):null})}))}))},ee=function(){var e=(0,r.useContext)(D);if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},te=function(){var e=(0,r.useContext)(F);if(!e)throw new Error("useNavigate hook was used but a BaseContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.navigate},ne=function(){var e=(0,r.useContext)(F);if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var t=ee(),n=u(e.basepath,t.pathname);return n?n.params:null},re=function(e){if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");var t=(0,r.useContext)(F);if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=ee(),o=l(e,t.baseuri),a=u(o,n.pathname);return a?k({},a.params,{uri:a.uri,path:e}):null},oe=function(e){return e.replace(/(^\/+|\/+$)/g,"")},ae=function e(t){return function(n){if(!n)return null;if(n.type===r.Fragment&&n.props.children)return r.Children.map(n.props.children,e(t));var o,i,s;if(n.props.path||n.props.default||n.type===Y||a()(!1),n.type!==Y||n.props.from&&n.props.to||a()(!1),n.type===Y&&(o=n.props.from,i=n.props.to,s=function(e){return d(e)},v(o).filter(s).sort().join("/")!==v(i).filter(s).sort().join("/"))&&a()(!1),n.props.default)return{value:n,default:!0};var c=n.type===Y?n.props.from:n.props.path,u="/"===c?t:oe(t)+"/"+oe(c);return{value:n,default:n.props.default,path:n.props.children?oe(u)+"/*":u}}},ie=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},1143:function(e){"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7867:function(e,t,n){var r=n(6015);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1721:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})}},function(e){e.O(0,[774],(function(){return t=9917,e(e.s=t);var t}));e.O()}]);
//# sourceMappingURL=app-61df6ea638c0503441aa.js.map