(self.webpackChunkanime_girls_holding_programming_books=self.webpackChunkanime_girls_holding_programming_books||[]).push([[143],{1506: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},7154:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},9489:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||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},2393:function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=u.state,l=u.replace,p=void 0!==l&&l;if("number"==typeof t)e.history.go(t);else{c=n({},c,{key:Date.now()+""});try{i||p?e.history.replaceState(c,null,t):e.history.pushState(c,null,t)}catch(h){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],u=i[1],c=void 0===u?"":u;r++,o.push({pathname:s,search:c.length?"?"+c:c}),a.push(e)},replaceState:function(e,t,n){var i=n.split("?"),s=i[0],u=i[1],c=void 0===u?"":u;o[r]={pathname:s,search:c},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()),u=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=h(o),s=""===i[0],c=f(e),p=0,d=c.length;pt.score?-1:e.index-t.index}))},h=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},d=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0})))&&n.length>0?"?"+n.join("&"):"")},v=["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=h(r),u=h(a);if(""===s[0])return d(a,o);if(!i(s[0],".")){var c=u.concat(s).join("/");return d(("/"===a?"":"/")+c,o)}for(var l=u.concat(s),p=[],f=0,v=l.length;f1?n-1:0),o=1;o0&&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;a0&&void 0!==arguments[0]?arguments[0]:s;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 u=t.lastIndexOf(o);t=t.slice(0,u)+(i?o:"")+" "+a+t.slice(u+1)}}return t}}};function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&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,c(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)}}},p=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)}}},f=(new i(u({separator:","}),l,p),new i(u({separator:",",conjunction:"and"}),l,p),new i(u({separator:",",conjunction:"or"}),l,p),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}}}),h=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},d=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(h):h(e)?e:""}}},v=(new i(f("\n"),d,u,l,p),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)}}}),g=(new i(f("\n"),u,l,p,v(/&/g,"&"),v(//g,">"),v(/"/g,"""),v(/'/g,"'"),v(/`/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 i(g(/(?:\n(?:\s*))+/g," "),p),new i(g(/(?:\n\s*)/g,""),p),new i(u({separator:","}),g(/(?:\s+)/g," "),p),new i(u({separator:",",conjunction:"or"}),g(/(?:\s+)/g," "),p),new i(u({separator:",",conjunction:"and"}),g(/(?:\s+)/g," "),p),new i(u,l,p),new i(u,g(/(?:\s+)/g," "),p),new i(l,p),new i(l("all"),p)},8440:function(e,t){"use strict";t.__esModule=!0,t.applyTrailingSlashOption=void 0;t.applyTrailingSlashOption=function(e,t){void 0===t&&(t="legacy");var n=e.endsWith(".html");return"/"===e?e:(n&&(t="never"),"always"===t?e.endsWith("/")?e:e+"/":"never"===t&&e.endsWith("/")?e.slice(0,-1):e)}},6494:function(e){"use strict";e.exports=Object.assign},8037:function(e,t,n){"use strict";var r=n(5318);t.__esModule=!0,t.withPrefix=v,t.withAssetPrefix=function(e){return v(e,g())},t.navigate=t.default=void 0;var o=r(n(7316)),a=r(n(1506)),i=r(n(5354)),s=r(n(7154)),u=r(n(5697)),c=r(n(7294)),l=n(9499),p=n(1752);t.parsePath=p.parsePath;var f=n(4587),h=n(349),d=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function v(e,t){var n,r;if(void 0===t&&(t=m()),!(0,f.isLocalLink)(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""},m=function(){return""};var y={activeClassName:u.default.string,activeStyle:u.default.object,partiallyActive:u.default.bool};function w(e){return c.default.createElement(l.Location,null,(function(t){var n=t.location;return c.default.createElement(b,(0,s.default)({},e,{_location:n}))}))}var b=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.abortPrefetch=null,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+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);var t=(0,h.rewriteLinkPath)(this.props.to,e),n=(0,p.parsePath)(t),r=n.pathname+n.search;if(e!==r)return ___loader.enqueue(r)},n.componentWillUnmount=function(){if(this.io){var e=this.io,t=e.instance,n=e.el;this.abortPrefetch&&this.abortPrefetch.abort(),t.unobserve(n),t.disconnect()}},n.handleRef=function(e){var t,n,r,o=this;this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=(t=e,n=function(e){e?o.abortPrefetch=o._prefetch():o.abortPrefetch&&o.abortPrefetch.abort()},(r=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&n(e.isIntersecting||e.intersectionRatio>0)}))}))).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,u=t.onMouseEnter,v=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),g=t.replace,m=t._location,y=(0,o.default)(t,d);var w=(0,h.rewriteLinkPath)(n,m.pathname);return(0,f.isLocalLink)(w)?c.default.createElement(l.Link,(0,s.default)({to:w,state:v,getProps:a,innerRef:this.handleRef,onMouseEnter:function(e){u&&u(e);var t=(0,p.parsePath)(w);___loader.hovering(t.pathname+t.search)},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=g,r=encodeURI(w)===m.pathname;"boolean"!=typeof g&&r&&(n=!0),window.___navigate(w,{state:v,replace:n})}return!0}},y)):c.default.createElement("a",(0,s.default)({href:w},y))},t}(c.default.Component);b.propTypes=(0,s.default)({},y,{onClick:u.default.func,to:u.default.string.isRequired,replace:u.default.bool,state:u.default.object});var P=c.default.forwardRef((function(e,t){return c.default.createElement(w,(0,s.default)({innerRef:t},e))}));t.default=P;t.navigate=function(e,t){window.___navigate((0,h.rewriteLinkPath)(e,window.location.pathname),t)}},4587:function(e,t){"use strict";t.__esModule=!0,t.isLocalLink=void 0;var n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;t.isLocalLink=function(e){if("string"==typeof e)return!function(e){return n.test(e)}(e)}},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}}},349:function(e,t,n){"use strict";t.__esModule=!0,t.rewriteLinkPath=void 0;var r=n(2098),o=(n(8440),n(1752)),a=n(4587),i=n(8037),s=function(e){return null==e?void 0:e.startsWith("/")};t.rewriteLinkPath=function(e,t){if("number"==typeof e)return e;if(!(0,a.isLocalLink)(e))return e;var n=(0,o.parsePath)(e),u=(n.pathname,n.search,n.hash,e);return s(u)?(0,i.withPrefix)(u):function(e,t){return s(e)?e:(0,r.resolve)(e,t)}(u,t)}},9679:function(e,t,n){"use strict";t.$C=void 0;var r=n(1432);t.$C=r.ScrollHandler,n(4855).useScrollRestoration},1432:function(e,t,n){"use strict";var r=n(5318);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(1506)),a=r(n(5354)),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=c(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)),u=n(1142);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var l=i.createContext(new u.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;a0?u:n?[n]:[]},t.I=function(e,t,n){return r.reduce((function(n,r){return r.plugin[e]?n.then((function(){return r.plugin[e](t,r.options)})):n}),Promise.resolve())}},8299: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)}))}}}()},7802:function(e,t,n){"use strict";n.d(t,{UD:function(){return f},Cj:function(){return d},GA:function(){return h},DS:function(){return p}});var r=n(2098),o=n(1505),a=function(e){if(void 0===e)return e;var t=e.split("?"),n=t[0],r=t[1],o=void 0===r?"":r;return o&&(o="?"+o),"/"===n?"/"+o:"/"===n.charAt(n.length-1)?n.slice(0,-1)+o:n+o},i=n(6073),s=new Map,u=[],c=function(e){var t=decodeURIComponent(e);return(0,o.Z)(t,decodeURIComponent("")).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}var p=function(e){u=e},f=function(e){var t=v(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=(0,r.pick)(n,t);return o?a(o.route.originalPath):null},h=function(e){var t=v(e),n=u.map((function(e){var t=e.path;return{path:e.matchPath,originalPath:t}})),o=(0,r.pick)(n,t);return o?o.params:{}},d=function e(t){var n=c(l(t));if(s.has(n))return s.get(n);var r=(0,i.J)(t);if(r)return e(r.toPath);var o=f(n);return o||(o=v(t)),s.set(n,o),o},v=function(e){var t=c(l(e));return"/index.html"===t&&(t="/"),t=a(t)}},1597:function(e,t,n){"use strict";n.d(t,{rU:function(){return o.default},B9:function(){return a},K2:function(){return i}});var r=n(7294),o=n(8037),a=(n(9679),n(2743),n(8575).ZP.enqueue,r.createContext({}));var i=function(e){var t;r.useContext;var n=r.useContext(a);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")}},8575:function(e,t,n){"use strict";n.d(t,{uQ:function(){return d},kL:function(){return O},ZP:function(){return S},hs:function(){return R},jN:function(){return j},N1:function(){return E}});var r=n(1721);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)return s[s.length-1];if(e&&e.location.pathname===a)return i?decodeURI(i.slice(1)):[0,0];return!0}var O=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){var n=this;requestAnimationFrame((function(){var e="new page at "+n.props.location.pathname;document.title&&(e=document.title);var t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);var r="Navigated to "+e;n.announcementRef.current&&(n.announcementRef.current.innerText!==r&&(n.announcementRef.current.innerText=r))}))},n.render=function(){return a.createElement("div",Object.assign({},h,{ref:this.announcementRef}))},t}(a.Component),E=function(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)},j=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!!E(e.location,this.props.location)&&(y(this.props.location,e.location),!0)},n.componentDidUpdate=function(e){E(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(O,{location:location}))},t}(a.Component),S=n(8522),R=n(5418),k=n(4942);function _(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}function C(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 x(e){for(var t=1;t0&&n(9939);var e=function(e){return a.createElement(s.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(S.Z,e))},t=a.createContext({}),p=function(e){function n(){return e.apply(this,arguments)||this}return(0,r.Z)(n,e),n.prototype.render=function(){var e=this.props.children;return a.createElement(s.Location,null,(function(n){var r=n.location;return a.createElement(L,{location:r},(function(n){var r=n.pageResources,o=n.location,i=(0,l.hs)();return a.createElement(c.B9.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(){var n=this;return a.createElement(t.Consumer,null,(function(t){var r=t.pageResources,o=t.location;return a.createElement(j,{location:o},a.createElement(u.$C,{location:o,shouldUpdateScroll:P},a.createElement(s.Router,{basepath:"",location:o,id:"gatsby-focus-wrapper"},a.createElement(e,Object.assign({path:"/404.html"===r.page.path||"/500.html"===r.page.path?(0,D.Z)(o.pathname,""):encodeURI((r.page.matchPath||r.page.path).split("?")[0])},n.props,{location:o,pageResources:r},r.json)))))}))},o}(a.Component),h=window,d=h.pagePath,v=h.location;d&&""+d!==v.pathname+(d.includes("?")?v.search:"")&&!(T.findMatchPath((0,D.Z)(v.pathname,""))||d.match(/^\/(404|500)(\/?|.html)$/)||d.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,s.navigate)(""+d+(d.includes("?")?"":v.search)+v.hash,{replace:!0});var g=function(){try{return sessionStorage}catch(e){return null}};l.jN.loadPage(v.pathname+v.search).then((function(e){var t,n=g();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n&&!("1"===n.getItem(M))))return n.setItem(M,"1"),void window.location.reload(!0);if(n&&n.removeItem(M),!e||e.status===l.uQ.Error){var r="page resources for "+v.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(r),e.error;throw new Error(r)}var s=(0,o.h)("wrapRootElement",{element:a.createElement(f,null)},a.createElement(f,null),(function(e){return{element:e.result}})).pop(),u=function(){var e=a.useRef(!1);return a.useEffect((function(){e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.h)("onInitialClientRender"))}),[]),a.createElement(p,null,s)},c=(0,o.h)("replaceHydrateFunction",void 0,i.hydrateRoot?i.hydrateRoot:i.hydrate)[0];function h(){var e="undefined"!=typeof window?document.getElementById("___gatsby"):null;c===i.hydrateRoot?c(e,a.createElement(u,null)):c(a.createElement(u,null),e)}var d=document;if("complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)setTimeout((function(){h()}),0);else{var m=function e(){d.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),h()};d.addEventListener("DOMContentLoaded",m,!1),window.addEventListener("load",m,!1)}}))}))},224:function(e,t,n){"use strict";n.r(t);var r=n(4942),o=n(7294),a=n(8575),i=n(8522);function s(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}t.default=function(e){var t=e.location,n=a.ZP.loadPageSync(t.pathname);return n?o.createElement(i.Z,function(e){for(var t=1;t=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 h(e){return l.has(e)}var d=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 v(e,t,r,o,a,i,u,c){var l,p;return void 0===c&&(c={}),null!=u&&u.current&&!("objectFit"in document.documentElement.style)&&(u.current.dataset.objectFit=null!=(l=c.objectFit)?l:"cover",u.current.dataset.objectPosition=""+(null!=(p=c.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)}}(u)),s({},r,{loading:o,shouldLoad:e,"data-main-image":"",style:s({},c,{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:u})}function g(e,t,n,r,o,a,i,u){var c={};a&&(c.backgroundColor=a,"fixed"===n?(c.width=r,c.height=o,c.backgroundColor=a,c.position="relative"):("constrained"===n||"fullWidth"===n)&&(c.position="absolute",c.top=0,c.left=0,c.bottom=0,c.right=0)),i&&(c.objectFit=i),u&&(c.objectPosition=u);var l=s({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:s({opacity:t?0:1,transition:"opacity 500ms linear"},c)});return l}var m,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=c(e,y);return r.createElement(r.Fragment,null,r.createElement(w,s({},n)),t,!1)},P=["src","srcSet","loading","alt","shouldLoad","innerRef"],O=["fallback","sources","shouldLoad"],E=function(e){var t=e.src,n=e.srcSet,o=e.loading,a=e.alt,i=void 0===a?"":a,u=e.shouldLoad,l=e.innerRef,p=c(e,P);return r.createElement("img",s({},p,{decoding:"async",loading:o,src:u?t:void 0,"data-src":u?void 0:t,srcSet:u?n:void 0,"data-srcset":u?void 0:n,alt:i,ref:l}))},j=(0,r.forwardRef)((function(e,t){var n=e.fallback,o=e.sources,a=void 0===o?[]:o,i=e.shouldLoad,u=void 0===i||i,l=c(e,O),p=l.sizes||(null==n?void 0:n.sizes),f=r.createElement(E,s({},l,n,{sizes:p,shouldLoad:u,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:u?n:void 0,"data-srcset":u?void 0:n,sizes:p})})),f):f}));E.propTypes={src:o.string.isRequired,alt:o.string.isRequired,sizes:o.string,srcSet:o.string,shouldLoad:o.bool},j.displayName="Picture",j.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 S=["fallback"],R=function(e){var t=e.fallback,n=c(e,S);return t?r.createElement(j,s({},n,{fallback:{src:t},"aria-hidden":!0,alt:""})):r.createElement("div",s({},n))};R.displayName="Placeholder",R.propTypes={fallback:o.string,sources:null==(m=j.propTypes)?void 0:m.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(j,s({ref:t},e)),r.createElement("noscript",null,r.createElement(j,s({},e,{shouldLoad:!0}))))}));k.displayName="MainImage",k.propTypes=j.propTypes;var _=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')},C={image:a().object.isRequired,alt:_},x=["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,u(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(898).then(n.bind(n,6898)).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||h(a),isLoaded:t.isLoaded||h(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(610).then(n.bind(n,3610)).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&&h(n)}),t.setState({isLoading:!0,isLoaded:e&&h(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),u=i.style,l=i.className,p=c(i,x),f=this.props.className;this.props.class&&(f=this.props.class);var h=function(e,t,n){var r=null;return"fullWidth"===e&&(r=''),"constrained"===e&&(r='
"),r}(a,n,o);return r.createElement(e,s({},p,{style:s({},u,this.props.style,{backgroundColor:this.props.backgroundColor}),className:l+(f?" "+f:""),ref:this.root,dangerouslySetInnerHTML:{__html:h},suppressHydrationWarning:!0}))},a}(r.Component),D=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))};D.propTypes=C,D.displayName="GatsbyImage";var T,M=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions"],N=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.")},A=new Set(["fixed","fullWidth","constrained"]),U={src:a().string.isRequired,alt:_,width:N,height:N,sizes:a().string,layout:function(e){if(void 0!==e.layout&&!A.has(e.layout))return new Error("Invalid value "+e.layout+'" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".')}},I=(T=D,function(e){var t=e.src,n=e.__imageData,o=e.__error,a=c(e,M);return o&&console.warn(o),n?r.createElement(T,s({image:n},a)):(console.warn("Image not loaded",t),null)});function W(e){var t=e.children;return r.useEffect((function(){n.e(898).then(n.bind(n,6898))}),[]),t}I.displayName="StaticImage",I.propTypes=U},1306:function(e,t,n){"use strict";n.r(t),n.d(t,{wrapRootElement:function(){return a}});var r=n(7294),o=n(396);function a(e){var t=e.element;return r.createElement(o.c,null,t)}},2369:function(e){"use strict";var t=function(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);var n;return e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,o=0;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=o.createContext({}),p=function(e){var t=o.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):u(u({},t),e)),n},f=function(e){var t=p(e.components);return o.createElement(l.Provider,{value:t},e.children)},h={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},d=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),l=p(n),f=r,d=l["".concat(i,".").concat(f)]||l[f]||h[f]||a;return n?o.createElement(d,u(u({ref:t},s),{},{components:n})):o.createElement(d,u({ref:t},s))}));d.displayName="MDXCreateElement";var v=(0,o.createContext)({}),g=function(e){var t=e.__mdxScope,n=e.children;return o.createElement(v.Provider,{value:t},n)},m=n(1548),y=Object.assign({});function w(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 b(e){for(var t=1;tt.score?-1:e.index-t.index}))},m=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0})))&&n.length>0?"?"+n.join("&"):"")},w=["uri","path"],b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=i.state,u=i.replace,c=void 0!==u&&u;if("number"==typeof t)e.history.go(t);else{s=b({},s,{key:Date.now()+""});try{o||c?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(p){e.location[c?"replace":"assign"](t)}}r=P(e),o=!0;var l=new Promise((function(e){return a=e}));return n.forEach((function(e){return e({location:r,action:"PUSH"})})),l}}},E=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],u=i[1],c=void 0===u?"":u;r++,o.push({pathname:s,search:c.length?"?"+c:c}),a.push(e)},replaceState:function(e,t,n){var i=n.split("?"),s=i[0],u=i[1],c=void 0===u?"":u;o[r]={pathname:s,search:c},a[r]=e},go:function(e){var t=r+e;t<0||t>a.length-1||(r=t)}}}},j=!("undefined"==typeof window||!window.document||!window.document.createElement),S=O(j?window:E()),R=S.navigate,k=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 D=function(e,t){var n=(0,r.createContext)(t);return n.displayName=e,n},T=D("Location"),M=function(e){var t=e.children;return r.createElement(T.Consumer,null,(function(e){return e?t(e):r.createElement(N,null,t)}))},N=function(e){function t(){var n,r;C(this,t);for(var o=arguments.length,a=Array(o),i=0;i-1?(a=t.substring(0,o),i=t.substring(o)):a=t,r.createElement(T.Provider,{value:{location:{pathname:a,search:i,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},U=D("Base",{baseuri:"/",basepath:"/",navigate:S.navigate}),I=function(e){return r.createElement(U.Consumer,null,(function(t){return r.createElement(M,null,(function(n){return r.createElement(W,k({},t,n,e))}))}))},W=function(e){function t(){return C(this,t),x(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),c=void 0===s?"div":s,p=_(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)}),[]),h=t.pathname,d=u(f,h);if(d){var v=d.params,g=d.uri,m=d.route,y=d.route.value;o=m.default?o:m.path.replace(/\*$/,"");var w=k({},v,{uri:g,location:t,navigate:function(e,t){return n(l(e,g),t)}}),b=r.cloneElement(y,w,y.props.children?r.createElement(I,{location:t,primary:a},y.props.children):void 0),P=a?q:c,O=a?k({uri:g,location:t,component:c},p):p;return r.createElement(U.Provider,{value:{baseuri:g,basepath:o,navigate:w.navigate}},r.createElement(P,O,b))}return null},t}(r.PureComponent);W.defaultProps={primary:!0};var F=D("Focus"),q=function(e){var t=e.uri,n=e.location,o=e.component,a=_(e,["uri","location","component"]);return r.createElement(F.Consumer,null,(function(e){return r.createElement(Q,k({},a,{component:o,requestFocus:e,uri:t,location:n}))}))},H=!0,Z=0,Q=function(e){function t(){var n,r;C(this,t);for(var o=arguments.length,a=Array(o),i=0;i