1/*! For license information please see app-8d77e62c388dcabfb648.js.LICENSE.txt */ 2(self.webpackChunkinside_airbnb=self.webpackChunkinside_airbnb||[]).push([[524],{595:function(e,t){"use strict";function n(e,t,n){var r=e.length;return(n=null==n?0:n)<0?n=0:n>r&&(n=r),t="".concat(t),e.slice(n,n+t.length)==t}function r(){return"undefined"==typeof window?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function o(e){return e.toLowerCase().replace(/-/,"_")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){if(!e)return r();var t=e.languages,s=e.fallback;if(!e.languages)return s;var i=o(r());if(!i)return s;var a=t.filter((function(e){return o(e)===i}));return a.length>0?a[0]||s:t.filter((function(e){return n(i,e)||n(e,i)}))[0]||s};t.default=s},6395:function(e,t){"use strict";t.T=void 0;const n=[".html",".json",".js",".map",".txt",".xml",".pdf"];t.T=(e,t="always")=>{if("/"===e)return e;const r=e.endsWith("/");return((e,t)=>{for(const n of e)if(t.endsWith(n))return!0;return!1})(n,e)?e:"always"===t?r?e:`${e}/`:"never"===t&&r?e.slice(0,-1):e}},7035:function(e,t,n){"use strict";t.RV=t.z_=void 0;var r=n(3215);t.z_=r.ScrollHandler;var o=n(3721);t.RV=o.useScrollRestoration},3215:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(2475)),s=r(n(6221)),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 s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n(6540)),a=r(n(5556)),l=n(4351);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 u=i.createContext(new l.SessionStorage);t.ScrollContext=u,u.displayName="GatsbyScrollContext";var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new l.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,s.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)),r?this.scrollToHash(decodeURI(r),void 0):e&&this.windowScroll(e,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(u.Provider,{value:this._stateStorage},this.props.children)},t}(i.Component);t.ScrollHandler=p,p.propTypes={shouldUpdateScroll:a.default.func,children:a.default.element.isRequired,location:a.default.object.isRequired}},4351: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(s){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),s=JSON.stringify(r);try{window.sessionStorage.setItem(o,s)}catch(i){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(s)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},3721:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,s.useLocation)(),n=(0,o.useContext)(r.ScrollC
2ontext),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(3215),o=n(6540),s=n(6462)},2311:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(5535),n(9300);t.onInitialClientRender=()=>{}},3309:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap((e=>(null==e?void 0:e.forward)||[]))}},9300:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();const s=(0,o.getForwards)(e),i=document.createElement("script");i.dataset.partytown="",i.innerHTML=(0,r.partytownSnippet)({forward:s}),document.head.appendChild(i)};var r=n(4656),o=n(3309)},6877:function(e,t,n){t.components={"component---src-pages-404-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(125)]).then(n.bind(n,6544)),"component---src-pages-about-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(432)]).then(n.bind(n,4490)),"component---src-pages-collaborate-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(596),n.e(223),n.e(703),n.e(905)]).then(n.bind(n,4264)),"component---src-pages-community-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(676)]).then(n.bind(n,3690)),"component---src-pages-countries-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(55)]).then(n.bind(n,4241)),"component---src-pages-country-test-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(66)]).then(n.bind(n,2356)),"component---src-pages-data-assumptions-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(34)]).then(n.bind(n,8842)),"component---src-pages-data-community-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(715)]).then(n.bind(n,1755)),"component---src-pages-data-policies-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(592)]).then(n.bind(n,7298)),"component---src-pages-data-requests-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(404)]).then(n.bind(n,8182)),"component---src-pages-donate-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(824)]).then(n.bind(n,5983)),"component---src-pages-events-global-conversation-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(406)]).then(n.bind(n,2832)),"component---src-pages-explore-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(233),n.e(316),n.e(948),n.e(758)]).then(n.bind(n,6592)),"component---src-pages-get-the-data-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(233),n.e(866)]).then(n.bind(n,1468)),"component---src-pages-global-south-data-programme-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(492)]).then(n.bind(n,1274)),"component---src-pages-index-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(233),n.e(316),n.e(948),n.e(293)]).then(n.bind(n,6980)),"component---src-pages-index-old-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(173)]).then(n.bind(n,3071)),"component---src-pages-inside-airbnb-network-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(903)]).then(n.bind(n,1458)),"component---src-pages-partner-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(355)]).then(n.bind(n,6241)),"component---src-templates-blog-post-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(223),n.e(751)]).then(n.bind(n,3175)),"component---src-templates-country-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(266),n.e(223),n.e(233),n.e(703),n.e(827),n.e(604)]).then(n.bind(n,6169)),"component---src-templates-map-js":()=>Promise.all([n.e(869),n.e(593),n.e(563),n.e(266),n.e(596),n.e(223),n.e(233),n.e(316),n.e(703),n.e(827),n.e(888)]).then(n.bind(n,2128))}},9377:function(e,t,n){e.exports=[{plugin:n(8710),options:{plugins:[],trackingIds:["G-RY9F1SWQP3"],pluginConfig:{head:!0,respectDNT:!0,exclude:[],origin:"https://www.googletagmanager.com",delayOnRouteUpdate:0},gtagConfig:{}}},{plugin:n(2958),options:{plugins:[],localeJsonSourceName:"locale",languages:["en","fr","pt","es","it"],defaultLanguage:"en",generateDefaultLanguagePage:!0,redirect:!0,siteUrl:"https://insideairbnb.com",trailingSlash:"always",i18nextOptions:{interpolation:{escapeValue:!1},keySeparator:!1,nsSeparator:!1}}},{plugin:n(8108),options:{plugins:[]}},{plugin:n(2311),options:{plugins:[]}}]},20:function(e,t,n){const r=n(9377),{getResourceURLsForPathname:o,loadPage:s,loadPageSync:i}=n(6814).Zf;t.N=function(e,t,n,a){void 0===t&&(t={});let l=r.map((n=>{if(!n.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=s,t.loadPageSync=i;const r=n.plugin[e](t,n.options);return r&&a&&(t=a({args:t,result:r,plugin:n})),r}));return l=l.filter((e=>void 0!==e)),l.length>0?l:n?[n]:[]}
2,t.v=(e,t,n)=>r.reduce(((n,r)=>r.plugin[e]?n.then((()=>r.plugin[e](t,r.options))):n),Promise.resolve())},700:function(e,t){t.U=()=>""},9369:function(e,t,n){"use strict";n.d(t,{A: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)}))}}}()},8990:function(e,t,n){"use strict";n.d(t,{Yl:function(){return h},Hh:function(){return f},UA:function(){return d},QX:function(){return p}});var r=n(6462),o=n(8797),s=e=>{if(void 0===e)return e;let[t,n=""]=e.split("?");return n&&(n="?"+n),"/"===t?"/"+n:"/"===t.charAt(t.length-1)?t.slice(0,-1)+n:t+n},i=n(6491);const a=new Map;let l=[];const c=e=>{let t=e;if(-1!==e.indexOf("?")){const[n,r]=e.split("?");t=`${n}?${encodeURIComponent(r)}`}const n=decodeURIComponent(t);return(0,o.A)(n,decodeURIComponent("")).split("#")[0]};function u(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=>{l=e},h=e=>{const t=g(e),n=l.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),o=(0,r.pick)(n,t);return o?s(o.route.originalPath):null},d=e=>{const t=g(e),n=l.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),o=(0,r.pick)(n,t);return o?o.params:{}},f=e=>{const t=c(u(e));if(a.has(t))return a.get(t);const n=(0,i.X)(e);if(n)return f(n.toPath);let r=h(t);return r||(r=g(e)),a.set(t,r),r},g=e=>{let t=c(u(e));return"/index.html"===t&&(t="/"),t=s(t),t}},5268:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return a.N_},PageRenderer:function(){return s()},Script:function(){return k.Script},ScriptStrategy:function(){return k.ScriptStrategy},Slice:function(){return w},StaticQuery:function(){return l.de},StaticQueryContext:function(){return l.G},collectedScriptsByPage:function(){return k.collectedScriptsByPage},graphql:function(){return P},navigate:function(){return a.oo},parsePath:function(){return a.Rr},prefetchPathname:function(){return E},scriptCache:function(){return k.scriptCache},scriptCallbackCache:function(){return k.scriptCallbackCache},useScrollRestoration:function(){return i.RV},useStaticQuery:function(){return l.GR},withAssetPrefix:function(){return a.Zf},withPrefix:function(){return a.Fe}});var r=n(6814),o=n(2549),s=n.n(o),i=n(7035),a=n(7078),l=n(7231),c=n(7387),u=n(3954),p=n(3662);var h=n(2176);function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,h.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,p.A)(o,n.prototype),o}(e,arguments,(0,u.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,p.A)(n,e)},d(e)}var f=n(6540),g=n(700),m=n(2024);const v=e=>{let{sliceId:t,children:n}=e;const r=[f.createElement("slice-start",{id:`${t}-1`}),f.createElement("slice-end",{id:`${t}-1`})];return n&&(r.push(n),r.push(f.createElement("slice-start",{id:`${t}-2`}),f.createElement("slice-end",{id:`${t}-2`}))),r},y=e=>{let{sliceName:t,allowEmpty:n,children:r,...o}=e;const s=(0,f.useContext)(m.Jr),i=(0,f.useContext)(m.hr),a=s[t];if(!a){if(n)return null;throw new Error(`Slice "${a}" for "${t}" slot not found`)}const l=((e,t)=>Object.keys(t).length?`${e}-${(0,g.U)(t)}`:e)(a,o);let c=i[l];return c?r&&(c.hasChildren=!0):i[l]=c={props:o,sliceName:a,hasChildren:!!r},f.createElement(v,{sliceId:l},r)},b=e=>{let{sliceName:t,allowEmpty:n,children:r,...o}=e;const s=(0,f.useContext)(m.Jr),i=(0,f.useContext)(m.dd),a=s[t],l=i.get(a);if(!l){if(n)return null;throw new Error(`Slice "${a}" for "${t}" slot not found`)}return f.createElement(l.component,Object.assign({sliceContext:l.sliceContext,data:l.data},o),r)};function w(e){{const t={...e,sliceName:e.alias};delete t.alias,delete t.__renderedByLocation;const n=(0,f.useContext)(m.j$),r=S(e);if(Object.keys(r).length)throw new x("browser"===n.renderEnvironment,t.sliceName,r,e.__renderedByLocation);if("server"===n.renderEnvironment)return f.createElement(y,t);if("browser"===n.renderEnvironment)return f.createElement(b,t);if("engines"===n.renderEnvironment||"dev-ssr"===n.renderEnvironment)return f.createElement(b,t);if("slices"===n.renderEnvironment){let t="";try{t=`\n\nSlice component "${n.sliceRoot.name}" (${n.sliceRoot.componentPath}) tried to render <Slice alias="${e.alias}
2"/>`}catch{}throw new Error(`Nested slices are not supported.${t}\n\nSee https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`)}throw new Error(`Slice context "${n.renderEnvironment}" is not supported.`)}}let x=function(e){function t(n,r,o,s){var i;const a=Object.entries(o).map((e=>{let[t,n]=e;return`not serializable "${n}" type passed to "${t}" prop`})).join(", "),l="SlicePropsError";let c="",u="";if(n){const e=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getCurrentStack().trim().split("\n").slice(1);e[0]=e[0].trim(),c="\n"+e.join("\n"),u=`Slice "${r}" was passed props that are not serializable (${a}).`}else{u=`${l}: Slice "${r}" was passed props that are not serializable (${a}).`;c=`${u}\n${(new Error).stack.trim().split("\n").slice(2).join("\n")}`}return(i=e.call(this,u)||this).name=l,c?i.stack=c:Error.captureStackTrace(i,t),s&&(i.forcedLocation={...s,functionName:"Slice"}),i}return(0,c.A)(t,e),t}(d(Error));const S=function(e,t,n,r){void 0===t&&(t={}),void 0===n&&(n=[]),void 0===r&&(r=null);for(const[o,s]of Object.entries(e)){if(null==s||!r&&"children"===o)continue;const e=r?`${r}.${o}`:o;"function"==typeof s?t[e]=typeof s:"object"==typeof s&&n.indexOf(s)<=0&&(n.push(s),S(s,t,n,e))}return t};var k=n(5535);const E=r.Ay.enqueue;function P(){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.")}},6814:function(e,t,n){"use strict";n.d(t,{Wi:function(){return p},N5:function(){return x},Ay:function(){return E},Rh:function(){return R},LE:function(){return P},Zf:function(){return k},iC:function(){return S}});var r=n(7387),o=n(5458),s=n(8163);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)}))},a={};var l=function(e,t){return new Promise((n=>{a[e]?n():i(e,t).then((()=>{n(),a[e]=!0})).catch((()=>{}))}))},c=n(9369),u=n(8990);const p={Error:"error",Success:"success"},h=e=>{const[t,n]=e.split("?");var r;return`/page-data/${"/"===t?"index":(r="/"===(r=t)[0]?r.slice(1):r).endsWith("/")?r.slice(0,-1):r}/page-data.json${n?`?${n}`:""}`},d=e=>e.startsWith("//");function f(e,t){return void 0===t&&(t="GET"),new Promise((n=>{const r=new XMLHttpRequest;r.open(t,e,!0),r.onreadystatechange=()=>{4==r.readyState&&n(r)},r.send(null)}))}const g=/bot|crawler|spider|crawling/i,m=function(e,t,n){var r;void 0===t&&(t=null);const o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(r=e.slicesMap)&&void 0!==r?r:{}};return{component:t,head:n,json:e.result,page:o}};function v(e){return new Promise((t=>{try{const n=e.readRoot();t(n)}catch(n){if(!Object.hasOwnProperty.call(n,"_response")||!Object.hasOwnProperty.call(n,"_status"))throw n;setTimeout((()=>{v(e).then(t)}),200)}}))}let y=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,u.QX)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=f(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=h(t);return this.memoizedGet(r).then((r=>{const{status:o,responseText:s}=r;if(200===o)try{const n=JSON.parse(s);if(void 0===n.path)throw new Error("not a valid pageData response");const r=t.split("?")[1];return r&&!n.path.includes(r)&&(n.path+=`?${r}`),Object.assign(e,{status:p.Success,payload:n})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:p.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0}
2)):500===o?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:p.Error})}))},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:n=0}=e,r=h(t).replace(".json","-rsc.json");return this.memoizedGet(r).then((r=>{const{status:o,responseText:s}=r;if(200===o)try{return Object.assign(e,{status:p.Success,payload:s})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:p.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:p.Error})}))},t.loadPageDataJson=function(e){const t=(0,u.Hh)(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.loadPartialHydrationJson=function(e){const t=(0,u.Hh)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then((e=>(this.partialHydrationDb.set(t,e),e)))}
2,t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return f(`/slice-data/${e}.json`,"GET").then((t=>{const n=JSON.parse(t.responseText);return this.slicesDataDb.set(e,n),{sliceName:e,jsonPayload:n}}))},t.findMatchPath=function(e){return(0,u.Yl)(e)},t.loadPage=function(e){const t=(0,u.Hh)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const n=[this.loadAppData(),this.loadPageDataJson(t)];const r=Promise.all(n).then((e=>{const[n,r,i]=e;if(r.status===p.Error||(null==i?void 0:i.status)===p.Error)return{status:p.Error};let a=r.payload;const{componentChunkName:l,staticQueryHashes:u=[],slicesMap:h={}}=a,d={},f=Array.from(new Set(Object.values(h))),g=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then((t=>{return{component:(n=t,n&&n.default||n),sliceContext:e.result.sliceContext,data:e.result.data};var n}));return this.sliceInflightDb.set(e.name,t),t.then((t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)})),t};return Promise.all(f.map((e=>this.loadSliceDataJson(e)))).then((e=>{const h=[],f=(0,o.A)(u);for(const{jsonPayload:t,sliceName:n}of Object.values(e)){h.push({name:n,...t});for(const e of t.staticQueryHashes)f.includes(e)||f.push(e)}const y=[Promise.all(h.map(g)),this.loadComponent(l,"head")];y.push(this.loadComponent(l));const b=Promise.all(y).then((e=>{const[t,o,l]=e;d.createdAt=new Date;for(const n of t)(!n||n instanceof Error)&&(d.status=p.Error,d.error=n);let c;if((!l||l instanceof Error)&&(d.status=p.Error,d.error=l),d.status!==p.Error){if(d.status=p.Success,!0!==r.notFound&&!0!==(null==i?void 0:i.notFound)||(d.notFound=!0),a=Object.assign(a,{webpackCompilationHash:n?n.webpackCompilationHash:""}),"string"==typeof(null==i?void 0:i.payload)){c=m(a,null,o),c.partialHydration=i.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(i.payload))},pull(e){e.close()},cancel(){}});return v((0,s.createFromReadableStream)(e)).then((e=>(c.partialHydration=e,c)))}c=m(a,l,o)}return c})),w=Promise.all(f.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([b,w]).then((e=>{let n,[r,o]=e;return r&&(n={...r,staticQueryResults:o},d.payload=n,c.A.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(t,d),d.error?{error:d.error,status:d.status}:n})).catch((e=>({error:e,status:p.Error})))}))}));return r.then((()=>{this.inFlightDb.delete(t)})).catch((e=>{throw this.inFlightDb.delete(t),e})),this.inFlightDb.set(t,r),r},t.loadPageSync=function(e,t){void 0===t&&(t={});const n=(0,u.Hh)(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})()&&((!navigator.userAgent||!g.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise(((e,n)=>{t.resolve=e,t.reject=n})),this.prefetchQueued.push([e,t]);const n=new AbortController;return n.signal.addEventListener("abort",(()=>{const t=this.prefetchQueued.findIndex((t=>{let[n]=t;return n===e}));-1!==t&&this.prefetchQueued.splice(t,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(e,n)=>t.promise.then(e,n),abort:n.abort.bind(n)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))((()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map((e=>{let[t,n]=e;return this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled?n.resolve(!1):this.doPrefetch((0,u.Hh)(t)).then((()=>{this.prefetchCompleted.has(t)||(this.apiRunner("onPostPrefetchPathname",{pathname:t}),this.prefetchCompleted.add(t)),n.resolve(!0)}))})));this.prefetchQueued.length?t.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},t.doPrefetch=function(e){const t=h(e);return l(t,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(e)))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,u.Hh)(e),n=this.pageDataDb.get(t);if(n){const e=m(n.payload);return[].concat((0,o.A)(b(e.page.componentChunkName)),[h(t)])}return null},t.isPageNotFound=function(e){const t=(0,u.Hh)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){return void 0===e&&(e=0),this.memoizedGet("/page-d
2ata/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(s){}return o}))},e}();const b=e=>(window.___chunkMapping[e]||[]).map((e=>""+e));let w,x=function(e){function t(t,n,r){var o;return o=e.call(this,(function(e,n){if(void 0===n&&(n="components"),!t[n="components"][e])throw new Error(`We couldn't find the correct component chunk with the name "${e}"`);return t[n][e]().catch((e=>e))}),n)||this,r&&o.pageDataDb.set((0,u.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(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=b(n);return Promise.all(r.map(l)).then((()=>t))}))},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((e=>e.notFound?d(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:p.Error}:e)):e))},n.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then((e=>e.notFound?d(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:p.Error}:e)):e))},t}(y);const S=e=>{w=e},k={enqueue:e=>w.prefetch(e),getResourceURLsForPathname:e=>w.getResourceURLsForPathname(e),loadPage:e=>w.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),w.loadPageSync(e,t)},prefetch:e=>w.prefetch(e),isPageNotFound:e=>w.isPageNotFound(e),hovering:e=>w.hovering(e),loadAppData:()=>w.loadAppData()};var E=k;function P(){return w?w.staticQueryDb:{}}function R(){return w?w.slicesDb:{}}},6017:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(6540),o=n(5556),s=n.n(o),i=n(20),a=n(8990),l=n(5458),c=n(5268),u=n(6462),p=n(9732);function h(e){let{children:t,callback:n}=e;return(0,r.useEffect)((()=>{n()})),t}const d=["link","meta","style","title","base","noscript","script","html","body"];function f(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function g(e,t){void 0===t&&(t={html:{},body:{}});const n=new Map,r=[];for(const c of e.childNodes){var o,s;const e=c.nodeName.toLowerCase(),u=null===(o=c.attributes)||void 0===o||null===(s=o.id)||void 0===s?void 0:s.value;if(y(c)){if(v(e))if("html"===e||"body"===e)for(const n of c.attributes){const r="style"===n.name;var i;if(t[e]={...t[e]},r||(t[e][n.name]=n.value),r)t[e].style=`${null!==(i=t[e])&&void 0!==i&&i.style?t[e].style:""}${n.value} `}else{let e=c.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),"script"===e.nodeName.toLowerCase()&&(e=m(e)),u)if(n.has(u)){var a;const t=n.get(u);null===(a=r[t].parentNode)||void 0===a||a.removeChild(r[t]),r[t]=e}else r.push(e),n.set(u,r.length-1);else r.push(e)}c.childNodes.length&&r.push.apply(r,(0,l.A)(g(c,t).validHeadNodes))}}return{validHeadNodes:r,htmlAndBodyAttributes:t}}function m(e){const t=document.createElement("script");for(const n of e.attributes)t.setAttribute(n.name,n.value);return t.innerHTML=e.innerHTML,t}function v(e){return d.includes(e)}function y(e){return 1===e.nodeType}const b=document.createElement("div"),w={html:[],body:[]},x=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:n}=g(b);w.html=Object.keys(n.html),w.body=Object.keys(n.body),function(e){if(!e)return;const{html:t,body:n}=e,r=document.querySelector("html");
2r&&Object.entries(t).forEach((e=>{let[t,n]=e;r.setAttribute(t,n)}));const o=document.querySelector("body");o&&Object.entries(n).forEach((e=>{let[t,n]=e;o.setAttribute(t,n)}))}(n);const r=document.querySelectorAll("[data-gatsby-head]");var o;if(0===r.length)return void(o=document.head).append.apply(o,(0,l.A)(t));const s=[];!function(e){let{oldNodes:t,newNodes:n,onStale:r,onNew:o}=e;for(const s of t){const e=n.findIndex((e=>f(e,s)));-1===e?r(s):n.splice(e,1)}for(const s of n)o(s)}({oldNodes:r,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>s.push(e)}),(e=document.head).append.apply(e,s)};function S(e){let{pageComponent:t,staticQueryResults:n,pageComponentProps:o}=e;(0,r.useEffect)((()=>{if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error(`Expected "Head" export to be a function got "${typeof e}".`)}(t.Head);const{render:s}=(0,p.n)(),a=r.createElement(t.Head,{location:{pathname:(e=o).location.pathname},params:e.params,data:e.data||{},serverData:e.serverData,pageContext:e.pageContext}),l=(0,i.N)("wrapRootElement",{element:a},a,(e=>{let{result:t}=e;return{element:t}})).pop();s(r.createElement(h,{callback:x},r.createElement(c.StaticQueryContext.Provider,{value:n},r.createElement(u.LocationProvider,null,l))),b)}var e;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:n}=e;if(t){const e=document.querySelector("html");t.forEach((t=>{e&&e.removeAttribute(t)}))}if(n){const e=document.querySelector("body");n.forEach((t=>{e&&e.removeAttribute(t)}))}}(w)}}))}function k(e){const t={...e,params:{...(0,a.UA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let n;var o;n=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,r.createElement)((o=e.pageResources.component)&&o.default||o,{...t,key:e.path||e.pageResources.page.path});S({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,i.N)("wrapPageElement",{element:n,props:t},n,(e=>{let{result:n}=e;return{element:n,props:t}})).pop()}k.propTypes={location:s().object.isRequired,pageResources:s().object.isRequired,data:s().object,pageContext:s().object.isRequired};var E=k},6498:function(e,t,n){"use strict";var r=n(7387),o=n(20),s=n(6540),i=n(6462),a=n(7035),l=n(7231),c=n(2024),u=n(6814),p=n(6491),h=n(9369);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 f=n(7078);function g(e){const t=(0,p.X)(e),{hash:n,search:r}=window.location;return null!=t&&(window.___replace(t.toPath+r+n),!0)}let m="";window.addEventListener("unhandledrejection",(e=>{/loading chunk \d* failed./i.test(e.reason)&&m&&(window.location.pathname=m)}));const v=(e,t)=>{g(e.pathname)||(m=e.pathname,(0,o.N)("onPreRouteUpdate",{location:e,prevLocation:t}))},y=(e,t)=>{g(e.pathname)||(0,o.N)("onRouteUpdate",{location:e,prevLocation:t})},b=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void i.globalHistory.navigate(e);const{pathname:n,search:r,hash:s}=(0,f.Rr)(e),a=(0,p.X)(n);if(a&&(e=a.toPath+r+s),window.___swUpdated)return void(window.location=n+r+s);const l=setTimeout((()=>{h.A.emit("onDelayedLoadPageResources",{pathname:n}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.Ay.loadPage(n+r).then((o=>{if(!o||o.status===u.Wi.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(l);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+s),(0,i.navigate)(e,t),clearTimeout(l)}))};function w(e,t){let{location:n}=t;const{pathname:r,hash:s}=n,i=(0,o.N)("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 s?decodeURI(s.slice(1)):[0,0]}return!0}let x=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=s.createRef(),n}(0,r.A)(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 s.createElement("div",Object.assign({},d,{ref:this.announcementRef}))},t}(s.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 k=function(e){function t(t){var n;return n=e.call(this,t)||this,v(t.location,null),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!S(this.props.location,e.location)&&(v(e.location,this.props.location),!0)}
2,n.componentDidUpdate=function(e){S(e.location,this.props.location)&&y(this.props.location,e.location)},n.render=function(){return s.createElement(s.Fragment,null,this.props.children,s.createElement(x,{location:location}))},t}(s.Component);var E=n(6017),P=n(6877);function R(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 O=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||u.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:n}=e;if(t.location.href!==n.href){return{pageResources:u.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=t.prototype;return n.loadResources=function(e){u.Ay.loadPage(e).then((t=>{t&&t.status!==u.Wi.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 R(e.props,t)||R(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(s.Component),C=n(8797),N=JSON.parse('[{"path":"/en/404/","matchPath":"/en/en/*"},{"path":"/es/404/","matchPath":"/es/es/*"},{"path":"/fr/404/","matchPath":"/fr/fr/*"},{"path":"/it/404/","matchPath":"/it/it/*"},{"path":"/pt/404/","matchPath":"/pt/pt/*"}]'),_=n(9732);const L=new u.N5(P,N,window.pageData);(0,u.iC)(L),L.setApiRunner(o.N);const{render:j,hydrate:$}=(0,_.n)();window.asyncRequires=P,window.___emitter=h.A,window.___loader=u.Zf,i.globalHistory.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);const A="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then((()=>{(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(626);const e=e=>s.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},s.createElement(E.A,e)),t=s.createContext({}),p={renderEnvironment:"browser"};let h=function(e){function n(){return e.apply(this,arguments)||this}return(0,r.A)(n,e),n.prototype.render=function(){const{children:e}=this.props;return s.createElement(i.Location,null,(n=>{let{location:r}=n;return s.createElement(O,{location:r},(n=>{let{pageResources:r,location:o}=n;const i=(0,u.LE)(),a=(0,u.Rh)();return s.createElement(l.G.Provider,{value:i},s.createElement(c.j$.Provider,{value:p},s.createElement(c.dd.Provider,{value:a},s.createElement(c.Jr.Provider,{value:r.page.slicesMap},s.createElement(t.Provider,{value:{pageResources:r,location:o}},e)))))}))}))},n}(s.Component),d=function(n){function o(){return n.apply(this,arguments)||this}return(0,r.A)(o,n),o.prototype.render=function(){return s.createElement(t.Consumer,null,(t=>{let{pageResources:n,location:r}=t;return s.createElement(k,{location:r},s.createElement(a.z_,{location:r,shouldUpdateScroll:w},s.createElement(i.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},s.createElement(e,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,C.A)(r.pathname,""):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},this.props,{location:r,pageResources:n},n.json)))))}))},o}(s.Component);const{pagePath:f,location:g}=window;f&&""+f!==g.pathname+(f.includes("?")?g.search:"")&&!(L.findMatchPath((0,C.A)(g.pathname,""))||f.match(/^\/(404|500)(\/?|.html)$/)||f.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)(""+f+(f.includes("?")?"":g.search)+g.hash,{replace:!0});const m=()=>{try{return sessionStorage}catch{return null}};u.Zf.loadPage(g.pathname+g.search).then((e=>{var t;const n=m();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"
2in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n)){if(!("1"===n.getItem(A)))return n.setItem(A,"1"),void window.location.reload(!0)}if(n&&n.removeItem(A),!e||e.status===u.Wi.Error){const t=`page resources for ${g.pathname} not found. Not rendering React`;if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}const r=(0,o.N)("wrapRootElement",{element:s.createElement(d,null)},s.createElement(d,null),(e=>{let{result:t}=e;return{element:t}})).pop(),i=function(){const e=s.useRef(!1);return s.useEffect((()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))}),[]),s.createElement(h,null,r)},a=document.getElementById("gatsby-focus-wrapper");let l=j;a&&a.children.length&&(l=$);const c=(0,o.N)("replaceHydrateFunction",void 0,l)[0];function p(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;c(s.createElement(i,null),e)}const f=document;if("complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)setTimeout((function(){p()}),0);else{const e=function(){f.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),p()};f.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}}))}))},963:function(e,t,n){"use strict";n.r(t);var r=n(6540),o=n(6814),s=n(6017);t.default=e=>{let{location:t}=e;const n=o.Ay.loadPageSync(t.pathname);return n?r.createElement(s.A,{location:t,pageResources:n,...n.json}):null}},2549:function(e,t,n){var r;e.exports=(r=n(963))&&r.default||r},9732:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});const r=new WeakMap;function o(){const e=n(5338);return{render:(t,n)=>{let o=r.get(n);o||r.set(n,o=e.createRoot(n)),o.render(t)},hydrate:(t,n)=>e.hydrateRoot(n,t)}}},6491:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});const r=new Map,o=new Map;function s(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)}))},626:function(e,t,n){"use strict";n.r(t);var r=n(20);"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.N)("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.N)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},2024:function(e,t,n){"use strict";n.d(t,{Jr:function(){return i},dd:function(){return o},hr:function(){return a},j$:function(){return s}});var r=n(6540);const o=r.createContext({}),s=r.createContext({}),i=r.createContext({}),a=r.createContext({})},7231:function(e,t,n){"use strict";n.d(t,{de:function(){return l},G:function(){return o},GR:function(){return c}});var r=n(6540);const o=(s="StaticQuery",i={},r.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(s,i):r.createContext(i));var s,i;function a(e){let{staticQueryData:t,data:n,query:o,render:s}=e;const i=n?n.data:t[o]&&t[o].data;return r.createElement(r.Fragment,null,i&&s(i),!i&&r.createElement("div",null,"Loa
2ding (StaticQuery)"))}const l=e=>{const{data:t,query:n,render:s,children:i}=e;return r.createElement(o.Consumer,null,(e=>r.createElement(a,{data:t,query:n,render:s||i,staticQueryData:e})))},c=e=>{var t;r.useContext;const n=r.useContext(o);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")}},8797: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,{A:function(){return r}})},8108:function(e,t,n){"use strict";n.r(t)},8710:function(e,t){"use strict";t.onRouteUpdate=function(e,t){var n=e.location;if(void 0===t&&(t={}),"function"!=typeof gtag)return null;var r=t.pluginConfig||{};if(n&&void 0!==window.excludeGtagPaths&&window.excludeGtagPaths.some((function(e){return e.test(n.pathname)})))return null;var o=function(){var e=n?n.pathname+n.search+n.hash:void 0;window.gtag("event","page_view",{page_path:e})},s=r.delayOnRouteUpdate,i=void 0===s?0:s;return"requestAnimationFrame"in window?requestAnimationFrame((function(){requestAnimationFrame((function(){return setTimeout(o,i)}))})):setTimeout(o,32+i),null}},3064:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.I18nextContext=void 0;var o=r(n(6540)).default.createContext({language:"en",languages:["en"],routed:!1,defaultLanguage:"en",generateDefaultLanguagePage:!1,originalPath:"/",path:"/"});t.I18nextContext=o},2107:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.wrapPageElement=void 0;var o=r(n(4634)),s=(r(n(1250)),r(n(6540))),i=n(5268),a=r(n(595)),l=n(3773),c=r(n(5543)),u=n(2389),p=n(3064);r(n(525));t.wrapPageElement=function(e,t){var n,r,h=e.element,d=e.props,f=t.i18nextOptions,g=void 0===f?{}:f,m=t.redirect,v=void 0===m||m,y=t.generateDefaultLanguagePage,b=void 0!==y&&y,w=t.siteUrl,x=t.localeJsonNodeName,S=void 0===x?"locales":x,k=t.fallbackLanguage,E=t.trailingSlash;if(d){var P=d.data,R=d.pageContext,O=d.location,C=R.i18n,N=C.routed,_=C.language,L=C.languages,j=C.originalPath,$=C.defaultLanguage,A=C.path;if(v&&!N){var T=O.search;if("undefined"!=typeof window){var D=window.localStorage.getItem(l.LANGUAGE_KEY)||(0,a.default)({languages:L,fallback:k||_});if(L.includes(D)||(D=_),window.localStorage.setItem(l.LANGUAGE_KEY,D),D!==$){var I=T||"",M="never"===E,U=(0,i.withPrefix)("/"+D+function(e,t){var n=(0,i.withPrefix)("/"),r=e;return e.startsWith(n)&&(r=e.replace(n,"/")),t&&r.endsWith("/")?r.slice(0,-1):r}(O.pathname,M)+I+O.hash);return window.___replace(U),null}}}var F=(null==P||null===(n=P[S])||void 0===n?void 0:n.edges)||[];L.length>1&&F.length,0;var H=F.map((function(e){return e.node.ns})),W=(null===(r=g.defaultNS)||void 0===r?void 0:r.toString())||"translation";W=H.find((function(e){return e!==W}))||W;var V=H.filter((function(e){return e!==W})),J=F.reduce((function(e,t){var n=t.node,r="object"==typeof n.data?n.data:JSON.parse(n.data);return n.language in e||(e[n.language]={}),e[n.language][n.ns||W]=r,e}),{}),q=c.default.createInstance();return q.init((0,o.default)({},g,{resources:J,lng:_,fallbackLng:$,defaultNS:W,fallbackNS:V,react:(0,o.default)({},g.react,{useSuspense:!1})})),q.language!==_&&q.changeLanguage(_),function(e,t){return function(n){return s.default.createElement(u.I18nextProvider,{i18n:e},s.default.createElement(p.I18nextContext.Provider,{value:t},n))}}(q,{routed:N,language:_,languages:L,originalPath:j,defaultLanguage:$,generateDefaultLanguagePage:b,siteUrl:w,path:A})(h)}}},3773:function(e,t){"use strict";t.__esModule=!0,t.LANGUAGE_KEY=void 0;t.LANGUAGE_KEY="gatsby-i18next-language"},2958:function(e,t,n){const{wrapPageElement:r}=n(2107);t.wrapPageElement=r},5543:function(e){"use strict";const t=e=>"string"==typeof e,n=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},r=e=>null==e?"":""+e,o=/###/g,s=e=>e&&e.indexOf("###")>-1?e.replace(o,"."):e,i=e=>!e||t(e),a=(e,n,r)=>{const o=t(n)?n.split("."):n;let a=0;for(;a<o.length-1;){if(i(e))return{};const t=s(o[a]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return i(e)?{}:{obj:e,k:s(o[a])}}
vendor: 4,559 bytes, line 2
2,l=(e,t,n)=>{const{obj:r,k:o}=a(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let s=t[t.length-1],i=t.slice(0,t.length-1),l=a(e,i,Object);for(;void 0===l.obj&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=a(e,i,Object),l&&l.obj&&void 0!==l.obj[`${l.k}.${s}`]&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},c=(e,t)=>{const{obj:n,k:r}=a(e,t);if(n)return n[r]},u=(e,n,r)=>{for(const o in n)"__proto__"!==o&&"constructor"!==o&&(o in e?t(e[o])||e[o]instanceof String||t(n[o])||n[o]instanceof String?r&&(e[o]=n[o]):u(e[o],n[o],r):e[o]=n[o]);return e},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const d=e=>t(e)?e.replace(/[&<>"'\/]/g,(e=>h[e])):e;const f=[" ",",","?","!",";"],g=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let i=s;i<r.length;++i)if(i!==s&&(t+=n),t+=r[i],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&i<r.length-1)continue;s+=i-s+1;break}o=e}return o},v=e=>e&&e.replace("_","-"),y={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class b{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,o){return o&&!this.debug?null:(t(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new b(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new b(this.logger,e)}}var w=new b;class x{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,o]=t;for(let s=0;s<o;s++)r.apply(r,[e,...n])}))}}}class S extends x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],r&&(Array.isArray(r)?a.push(...r):t(r)&&s?a.push(...r.split(s)):a.push(r)));const l=c(this.data,a);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=a[0],n=a[1],r=a.slice(2).join(".")),!l&&i&&t(r)?m(this.data&&this.data[e]&&this.data[e][n],r,s):l}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[e,t];
vendor: 1,655 bytes, line 2
2n&&(i=i.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),l(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const s in r)(t(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,t,n,r,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);let a=c(this.data,i)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?u(a,n,o):a={...a,...n},l(this.data,i,a),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var k={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const E={};class P extends x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,n){let r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=f.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=g.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let s=!o.test(e);if(!s){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(s=!0)}return s})(e,r,o));if(i&&!a){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:t(s)?[s]:s};const i=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(i[0])>-1)&&(s=i.shift()),e=i.join(o)}return{key:e,namespaces:t(s)?[s]:s}}translate(e,n,r){if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const e=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${e}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(e,n);let h=p&&p.res;const d=p&&p.usedKey||i,f=p&&p.exactUsedKey||i,g=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!t(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||t(m)&&Array.isArray(h))if(v&&t(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,e,n,r));else{let o=!1,a=!1;const u=void 0!==n.count&&!t(n.count),d=P.hasDefaultValue(n),f=u?this.pluralResolver.getSuffix(c,n.count,n):"",g=n.ordinal&&u?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",m=u&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${f}`]||n[`defaultValue${g}`]||n.defaultValue;!this.isValidLookup(h)&&d&&(o=!0,h=v),this.isValidLookup(h)||(a=!0,h=i);const y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=d&&v!==h&&this.options.updateMissing;if(a||o||b){if(this.logger.log(b?"updateKey":"missingKey",c,l,i,b?v:h),s){const e=this.resolve(i,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const o=d&&r!==h?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,b,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,b,n),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const t=this.pluralResolver.getSuffixes(e,n);m&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{r([e],i+t,n[`defaultValue${t}`]||v)}))})):r(e,i,v))}h=this.extendTranslation(h,e,n,p,r),a&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${i}`),(a||o)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}
2`:i,o?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,h,{...n,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(s){const e=Array.isArray(h),t=e?[]:{},r=e?f:d;for(const o in h)if(Object.prototype.hasOwnProperty.call(h,o)){const e=`${r}${s}${o}`;t[o]=this.translate(e,{...n,joinArrays:!1,ns:a}),t[o]===e&&(t[o]=h[o])}h=t}}return o?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(e,n,r,o,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=t(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let c=r.replace&&!t(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||o.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(r.lng=this.language||o.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s&&s[0]===t[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${n[0]}`),null):i.translate(...t,n)}),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=t(a)?[a]:a;return null!=e&&l&&l.length&&!1!==r.applyPostProcessor&&(e=k.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n,r,o,s,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(n))return;const l=this.extractFromKey(e,a),c=l.key;r=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=void 0!==a.count&&!t(a.count),h=p&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&(t(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((e=>{this.isValidLookup(n)||(i=e,!E[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(E[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((t=>{if(this.isValidLookup(n))return;s=t;const r=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,c,t,e,a);else{let e;p&&(e=this.pluralResolver.getSuffix(t,a.count,a));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(r.push(c+e),a.ordinal&&0===e.indexOf(o)&&r.push(c+e.replace(o,this.options.pluralSeparator)),h&&r.push(c+n)),d){const t=`${c}${this.options.contextSeparator}${a.context}`;r.push(t),p&&(r.push(t+e),a.ordinal&&0===e.indexOf(o)&&r.push(t+e.replace(o,this.options.pluralSeparator)),h&&r.push(t+n))}}let i;for(;i=r.pop();)this.isValidLookup(n)||(o=i,n=this.getResource(t,e,i,a))})))}))})),{res:n,usedKey:r,exactUsedKey:o,usedLng:s,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!t(e.replace);let o=r?e.replace:e;if(r&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const e of n)delete o[e]}return o}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}const R=e=>e.charAt(0).toUpperCase()+e.slice(1);class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=v(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(t(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(n){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map((e=>e.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=R(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),t(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];
vendor: 3,634 bytes, line 2
2return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],s=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return t(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):t(e)&&s(this.formatLanguageCode(e)),r.forEach((e=>{o.indexOf(e)<0&&s(this.formatLanguageCode(e))})),o}}let C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const _=["v1","v2","v3"],L=["v4"],j={zero:0,one:1,two:2,few:3,many:4,other:5};class ${constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=w.create("pluralResolver"),this.options.compatibilityJSON&&!L.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};
vendor: 2,319 bytes, line 2
2return C.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:N[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const r=v("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[s]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>j[e]-j[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
vendor: 7,977 bytes, line 2
2shouldUseIntlApi(){return!_.includes(this.options.compatibilityJSON)}}const A=function(e,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,n)=>{const r=c(e,n);return void 0!==r?r:c(t,n)})(e,n,r);return!i&&s&&t(r)&&(i=m(e,r,o),void 0===i&&(i=m(n,r,o))),i},T=e=>e.replace(/\$/g,"$$$$");class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=w.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:s,suffix:i,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:h,nestingPrefixEscaped:f,nestingSuffix:g,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:d,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?p(o):s||"{{",this.suffix=i?p(i):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?p(h):f||p("$t("),this.nestingSuffix=g?p(g):m||p(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,o,s){let i,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const t=A(n,c,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(t,void 0,o,{...s,...n,interpolationkey:e}):t}const t=e.split(this.formatSeparator),r=t.shift().trim(),i=t.join(this.formatSeparator).trim();return this.format(A(n,c,r,this.options.keySeparator,this.options.ignoreJSONStructure),i,o,{...s,...n,interpolationkey:r})};this.resetRegExp();const p=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>T(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?T(this.escape(e)):T(e)}].forEach((n=>{for(l=0;i=n.regex.exec(e);){const o=i[1].trim();if(a=u(o),void 0===a)if("function"==typeof p){const n=p(e,i,s);a=t(n)?n:""}else if(s&&Object.prototype.hasOwnProperty.call(s,o))a="";else{if(h){a=i[0];continue}this.logger.warn(`missed to pass in variable ${o} for interpolating ${e}`),a=""}else t(a)||this.useRawValueToEscape||(a=r(a));const c=n.safeValue(a);if(e=e.replace(i[0],c),h?(n.regex.lastIndex+=a.length,n.regex.lastIndex-=i[0].length):n.regex.lastIndex=0,l++,l>=this.maxReplaces)break}})),e}nest(e,n){let o,s,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let c=[];i={...a},i=i.replace&&!t(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){const e=o[1].split(this.formatSeparator).map((e=>e.trim()));o[1]=e.shift(),c=e,u=!0}if(s=n(l.call(this,o[1].trim(),i),i),s&&o[0]===e&&!t(s))return s;t(s)||(s=r(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),s=""),u&&(s=c.reduce(((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:o[1].trim()})),s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}const I=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}};class M{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=w.create("formatter"),this.options=e,this.formats={number:I(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:I(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:I(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:I(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:I(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=I(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((e=>e.indexOf(")")>-1))){const e=o.findIndex((e=>e.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce(((e,t)=>{const{formatName:o,formatOptions:s}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();n[s]||(n[s]=o),"false"===o&&(n[s]=!1),"true"===o&&(n[s]=!0),isNaN(o)||(n[s]=parseInt(o,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const i=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=i.locale||i.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...s,...r,...i})}catch(i){this.logger.warn(i)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class U extends x{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},s={},i={},a={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const i=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===s[i]&&(s[i]=!0):(this.state[i]=1,r=!1,void 0===s[i]&&(s[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===a[t]&&(a[t]=!0)))})),r||(i[e]=!0)})),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],s=r[1];
vendor: 1,050 bytes, line 2
2t&&this.emit("failedLoading",o,s,t),!t&&n&&this.store.addResourceBundle(o,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const i={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:o,k:s}=a(e,t,Object);o[s]=o[s]||[],o[s].push(n)})(n.loaded,[o],s),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{i[e]||(i[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===i[e][t]&&(i[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:s});this.readingCalls++;const i=(i,a)=>
vendor: 11,689 bytes, line 2
2{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}i&&a&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,s)}),o):s(i,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,i);try{const n=a(e,t);n&&"function"==typeof n.then?n.then((e=>i(null,e))).catch(i):i(null,n)}catch(l){i(l)}}prepareLoading(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();t(e)&&(e=this.languageUtils.toResolveHierarchy(e)),t(n)&&(n=[n]);const s=this.queueLoad(e,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,s),this.loaded(e,n,s)}))}saveMissing(e,t,n,r,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...s,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,l):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>i(null,e))).catch(i):i(null,o)}catch(a){i(a)}else c(e,t,n,r,i,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const F=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),t(e[1])&&(n.defaultValue=e[1]),t(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach((e=>{n[e]=t[e]}))}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),H=e=>(t(e.ns)&&(e.ns=[e.ns]),t(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),t(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),W=()=>{};class V extends x{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=H(e),this.services={},this.logger=w,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof r&&(o=r,r={}),!r.defaultNS&&!1!==r.defaultNS&&r.ns&&(t(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const s=F();this.options={...s,...this.options,...H(r)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),void 0!==r.keySeparator&&(this.options.userDefinedKeySeparator=r.keySeparator),void 0!==r.nsSeparator&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?w.init(i(this.modules.logger),this.options):w.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=M);const n=new O(this.options);this.store=new S(this.options.resources,this.options);const r=this.services;r.logger=w,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new $(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(r.formatter=i(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new D(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new U(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(r.languageDetector=i(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=i(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new P(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,o||(o=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=n(),l=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),o(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const r=t(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>t(e)))}this.options.preload&&this.options.preload.forEach((e=>t(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)}))}else n(null)}reloadResources(e,t,r){const o=n();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=W),this.services.backendConnector.reload(e,t,(e=>{o.resolve(),r(e)})),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&k.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,r){var o=this;this.isLanguageChangingTo=e;const s=n();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,t)=>{t?(i(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit("languageChanged",t),this.logger.log("languageChanged",t)):this.isLanguageChangingTo=void 0,s.resolve((function(){return o.t(...arguments)})),r&&r(e,(function(){return o.t(...arguments)}))},l=n=>{e||n||!this.services.languageDetector||(n=[]);const r=t(n)?n:this.services.languageUtils.getBestMatchFromCodes(n);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(e=>{a(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),s}getFixedT(e,n,r){var o=this;const s=function(e,t){let n;if("object"!=typeof t){for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];n=o.options.overloadTranslationOptionHandler([e,t].concat(a))}else n={...t};n.lng=n.lng||s.lng,n.lngs=n.lngs||s.lngs,n.ns=n.ns||s.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||r||s.keyPrefix);const c=o.options.keySeparator||".";let u;return u=n.keyPrefix&&Array.isArray(e)?e.map((e=>`${n.keyPrefix}${c}${e}`)):n.keyPrefix?`${n.keyPrefix}${c}${e}`:e,o.t(u,n)};return t(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,s);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(n,e)||r&&!s(o,e)))}loadNamespaces(e,r){const o=n();return this.options.ns?(t(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{o.resolve(),r&&r(e)})),o):(r&&r(),Promise.resolve())}loadLanguages(e,r){const o=n();t(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter((e=>s.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=s.concat(i),this.loadResources((e=>{o.resolve(),r&&r(e)})),o):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new O(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new V(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new S(this.store.data,r),o.services.resourceStore=o.store),o.translator=new P(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const J=V.createInstance();J.createInstance=V.createInstance,e.exports=J},311:function(e){"use strict";e.exports=function(e,t,n,r,o,s,i,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,s,i,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},525:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function o(){return"undefined"!=typeof WeakMap?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}n.r(t),n.d(t,{outdent:function(){return f}}),e=n.hmd(e);var s=Object.prototype.hasOwnProperty,i=function(e,t){return s.call(e,t)};function a(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return e}var l=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,u=/^(?:[\r\n]|$)/,p=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,h=/^[ \t]*[\r\n][ \t\r\n]*$/;function d(e,t,n){var r=0,o=e[0].match(p);o&&(r=o[1].length);var s=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var i=n.newline,a=n.trimLeadingNewline,u=n.trimTrailingNewline,h="string"==typeof i,d=e.length;return e.map((function(e,t){return e=e.replace(s,"$1"),0===t&&a&&(e=e.replace(l,"")),t===d-1&&u&&(e=e.replace(c,"")),h&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return i}))),e}))}var f=function e(t){var n=o(),r=o(),s=a((function o(s){for(var l,c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];if(i(l=s,"raw")&&i(l,"length")){var g=s,m=(c[0]===o||c[0]===f)&&h.test(g[0])&&u.test(g[1]),v=m?r:n,y=v.get(g);
2if(y||(y=d(g,m,t),v.set(g,y)),0===c.length)return y[0];var b=function(e,t){for(var n="",r=0,o=e.length;r<o;r++)n+=e[r],r<o-1&&(n+=t[r]);return n}(y,m?c.slice(1):c);return b}return e(a(a({},t),s||{}))}),{string:function(e){return d([e],!1,t)[0]}});return s}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.default=f;try{e.exports=f,Object.defineProperty(f,"__esModule",{value:!0}),f.default=f,f.outdent=f}catch(g){}},207:function(e,t,n){"use strict";var r=n(6540),o={stream:!0},s=new Map,i=Symbol.for("react.element"),a=Symbol.for("react.lazy"),l=Symbol.for("react.default_value"),c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function u(e,t,n){this._status=e,this._value=t,this._response=n}function p(e){switch(e._status){case 3:return e._value;case 1:var t=JSON.parse(e._value,e._response._fromJSON);return e._status=3,e._value=t;case 2:for(var r=(t=e._value).chunks,o=0;o<r.length;o++){var i=s.get(r[o]);if(null!==i)throw i}return r=n(t.id),t="*"===t.name?r:""===t.name?r.__esModule?r.default:r:r[t.name],e._status=3,e._value=t;case 0:throw e;default:throw e._value}}function h(){return p(v(this,0))}function d(e,t){return new u(3,t,e)}function f(e){if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}function g(e,t){if(0===e._status){var n=e._value;e._status=4,e._value=t,f(n)}}function m(e,t){e._chunks.forEach((function(e){g(e,t)}))}function v(e,t){var n=e._chunks,r=n.get(t);return r||(r=new u(0,null,e),n.set(t,r)),r}function y(e){m(e,Error("Connection closed."))}function b(e,t){if(""!==t){var o=t[0],i=t.indexOf(":",1),a=parseInt(t.substring(1,i),16);switch(i=t.substring(i+1),o){case"J":(o=(t=e._chunks).get(a))?0===o._status&&(e=o._value,o._status=1,o._value=i,f(e)):t.set(a,new u(1,i,e));break;case"M":o=(t=e._chunks).get(a),i=JSON.parse(i,e._fromJSON);var p=e._bundlerConfig;p=(i=p?p[i.id][i.name]:i).chunks;for(var h=0;h<p.length;h++){var m=p[h];if(void 0===s.get(m)){var v=n.e(m),y=s.set.bind(s,m,null),b=s.set.bind(s,m);v.then(y,b),s.set(m,v)}}o?0===o._status&&(e=o._value,o._status=2,o._value=i,f(e)):t.set(a,new u(2,i,e));break;case"P":e._chunks.set(a,d(e,function(e){return c[e]||(c[e]=r.createServerContext(e,l)),c[e]}(i).Provider));break;case"S":o=JSON.parse(i),e._chunks.set(a,d(e,Symbol.for(o)));break;case"E":t=JSON.parse(i),(o=Error(t.message)).stack=t.stack,(i=(t=e._chunks).get(a))?g(i,o):t.set(a,new u(4,o,e));break;default:throw Error("Error parsing the data. It's probably an error code or network corruption.")}}}function w(e){return function(t,n){return"string"==typeof n?function(e,t,n){switch(n[0]){case"$":return"$"===n?i:"$"===n[1]||"@"===n[1]?n.substring(1):p(e=v(e,parseInt(n.substring(1),16)));case"@":return e=v(e,parseInt(n.substring(1),16)),{$$typeof:a,_payload:e,_init:p}}return n}(e,0,n):"object"==typeof n&&null!==n?n[0]===i?{$$typeof:i,type:n[1],key:n[2],ref:null,props:n[3],_owner:null}:n:n}}function x(e){var t=new TextDecoder;return(e={_bundlerConfig:e,_chunks:new Map,readRoot:h,_partialRow:"",_stringDecoder:t})._fromJSON=w(e),e}function S(e,t){function n(t){m(e,t)}var r=t.getReader();r.read().then((function t(s){var i=s.value;if(!s.done){s=i,i=e._stringDecoder;for(var a=s.indexOf(10);-1<a;){var l=e._partialRow,c=s.subarray(0,a);c=i.decode(c),b(e,l+c),e._partialRow="",a=(s=s.subarray(a+1)).indexOf(10)}return e._partialRow+=i.decode(s,o),r.read().then(t,n)}y(e)}),n)}u.prototype.then=function(e){0===this._status?(null===this._value&&(this._value=[]),this._value.push(e)):e()},t.createFromReadableStream=function(e,t){return S(t=x(t&&t.moduleMap?t.moduleMap:null),e),t}},8163:function(e,t,n){"use strict";e.exports=n(207)},4915:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2475: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},4634: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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
2e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6221:function(e,t,n){var r=n(5636);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},4994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5636: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},1250:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),e.raw=t,e},e.exports.__esModule=!0,e.exports.default=e.exports},4656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...r}=e||{},o=JSON.stringify(r,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t)));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener("pt0",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},3145:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:function(){return r}})},3954:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:function(){return r}})},7387:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},2176:function(e,t,n){"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:function(){return r}})},3662: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)}n.d(t,{A:function(){return r}})},5458:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(3145);var o=n(7800);function s(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(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.")}()}},7800:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.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)?(0,r.A)(e,t):void 0}}},6462:function(e,t,n){"use strict";var r;n.r(t),n.d(t,{BaseContext:function(){return m},Link:function(){return K},Location:function(){return X},LocationContext:function(){return v},LocationProvider:function(){return Y},Match:function(){return ee},Redirect:function(){return E},Router:function(){return ae},ServerLocation:function(){return Z},createHistory:function(){return u},createMemorySource:function(){return p},globalHistory:function(){return d},insertParams:function(){return N},isRedirect:function(){return x},match:function(){return O},navigate:function(){return f},pick:function(){return R},redirectTo:function(){return S},resolve:function(){return C},shallowCompare:function(){return U},startsWith:function(){return P},useBaseContext:function(){return y}
2,useLocation:function(){return ce},useLocationContext:function(){return b},useMatch:function(){return he},useNavigate:function(){return ue},useParams:function(){return pe},validateRedirect:function(){return _}});var o=n(6540),s=n(5556),i=n(311);function a(){return a=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},a.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}const c=e=>{const{search:t,hash:n,href:r,origin:o,protocol:s,host:i,hostname:a,port:l}=e.location;let{pathname:c}=e.location;return!c&&r&&h&&(c=new URL(r).pathname),{pathname:encodeURI(decodeURI(c)),search:t,hash:n,href:r,origin:o,protocol:s,host:i,hostname:a,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},u=(e,t)=>{let n=[],r=c(e),o=!1,s=()=>{};return{get location(){return r},get transitioning(){return o},_onTransitionComplete(){o=!1,s()},listen(t){n.push(t);const o=()=>{r=c(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),()=>{e.removeEventListener("popstate",o),n=n.filter((e=>e!==t))}},navigate(t,{state:i,replace:l=!1}={}){if("number"==typeof t)e.history.go(t);else{i=a({},i,{key:Date.now()+""});try{o||l?e.history.replaceState(i,null,t):e.history.pushState(i,null,t)}catch(n){e.location[l?"replace":"assign"](t)}}r=c(e),o=!0;const u=new Promise((e=>s=e));return n.forEach((e=>e({location:r,action:"PUSH"}))),u}}},p=(e="/")=>{const t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let r=0;const o=[n],s=[null];return{get location(){return o[r]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return o},get index(){return r},get state(){return s[r]},pushState(e,t,n){const[i,a=""]=n.split("?");r++,o.push({pathname:i,search:a.length?`?${a}`:a}),s.push(e)},replaceState(e,t,n){const[i,a=""]=n.split("?");o[r]={pathname:i,search:a},s[r]=e},go(e){const t=r+e;t<0||t>s.length-1||(r=t)}}}},h=!("undefined"==typeof window||!window.document||!window.document.createElement),d=u(h?window:p()),{navigate:f}=d;function g(e,t){return o.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=o.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):o.createContext(t)}const m=g("Base",{baseuri:"/",basepath:"/"}),v=g("Location"),y=()=>o.useContext(m),b=()=>o.useContext(v);function w(e){this.uri=e}const x=e=>e instanceof w,S=e=>{throw new w(e)};function k(e){const{to:t,replace:n=!0,state:r,noThrow:s,baseuri:i}=e;o.useEffect((()=>{Promise.resolve().then((()=>{const o=C(t,i);f(N(o,e),{replace:n,state:r})}))}),[]);const a=C(t,i);return s||S(N(a,e)),null}const E=e=>{const t=b(),{baseuri:n}=y();return o.createElement(k,a({},t,{baseuri:n},e))};E.propTypes={from:s.string,to:s.string.isRequired};const P=(e,t)=>e.substr(0,t.length)===t,R=(e,t)=>{let n,r;const[o]=t.split("?"),s=D(o),a=""===s[0],l=T(e);for(let c=0,u=l.length;c<u;c++){let e=!1;const o=l[c].route;if(o.default){r={route:o,params:{},uri:t};continue}const u=D(o.path),p={},h=Math.max(s.length,u.length);let d=0;for(;d<h;d++){const t=u[d],n=s[d];if($(t)){p[t.slice(1)||"*"]=s.slice(d).map(decodeURIComponent).join("/");break}if(void 0===n){e=!0;break}const r=L.exec(t);if(r&&!a){const e=-1===M.indexOf(r[1]);i(e,`<Router> dynamic segment "${r[1]}" is a reserved name. Please use a different name in path "${o.path}".`);const t=decodeURIComponent(n);p[r[1]]=t}else if(t!==n){e=!0;break}}if(!e){n={route:o,params:p,uri:"/"+s.slice(0,d).join("/")};break}}return n||r||null},O=(e,t)=>R([{path:e}],t),C=(e,t)=>{if(P(e,"/"))return e;const[n,r]=e.split("?"),[o]=t.split("?"),s=D(n),i=D(o);if(""===s[0])return I(o,r);if(!P(s[0],".")){const e=i.concat(s).join("/");return I(("/"===o?"":"/")+e,r)}const a=i.concat(s),l=[];for(let c=0,u=a.length;c<u;c++){const e=a[c];".."===e?l.pop():"."!==e&&l.push(e)}return I("/"+l.join("/"),r)},N=(e,t)=>{const[n,r=""]=e.split("?");let o="/"+D(n).map((e=>{const n=L.exec(e);return n?t[n[1]]:e})).join("/");const{location:{search:s=""}={}}=t,i=s.split("?")[1]||"";return o=I(o,r,i),o},_=(e,t)=>
2{const n=e=>j(e);return D(e).filter(n).sort().join("/")===D(t).filter(n).sort().join("/")},L=/^:(.+)/,j=e=>L.test(e),$=e=>e&&"*"===e[0],A=(e,t)=>({route:e,score:e.default?0:D(e.path).reduce(((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:j(t)?e+=2:$(t)?e-=5:e+=3,e)),0),index:t}),T=e=>e.map(A).sort(((e,t)=>e.score<t.score?1:e.score>t.score?-1:e.index-t.index)),D=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),I=(e,...t)=>e+((t=t.filter((e=>e&&e.length>0)))&&t.length>0?`?${t.join("&")}`:""),M=["uri","path"],U=(e,t)=>{const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((n=>t.hasOwnProperty(n)&&e[n]===t[n]))},F=e=>e.replace(/(^\/+|\/+$)/g,""),H=e=>t=>{if(!t)return null;if(t.type===o.Fragment&&t.props.children)return o.Children.map(t.props.children,H(e));if(i(t.props.path||t.props.default||t.type===E,`<Router>: Children of <Router> must have a \`path\` or \`default\` prop, or be a \`<Redirect>\`. None found on element type \`${t.type}\``),i(!!(t.type!==E||t.props.from&&t.props.to),`<Redirect from="${t.props.from}" to="${t.props.to}"/> requires both "from" and "to" props when inside a <Router>.`),i(!(t.type===E&&!_(t.props.from,t.props.to)),`<Redirect from="${t.props.from} to="${t.props.to}"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const n=t.type===E?t.props.from:t.props.path,r="/"===n?e:`${F(e)}/${F(n)}`;return{value:t,default:t.props.default,path:t.props.children?`${F(r)}/*`:r}},W=["innerRef"],V=["to","state","replace","getProps"],J=["key"];let{forwardRef:q}=r||(r=n.t(o,2));void 0===q&&(q=e=>e);const B=()=>{},K=q(((e,t)=>{let{innerRef:n}=e,r=l(e,W);const{baseuri:s}=y(),{location:i}=b(),{to:c,state:u,replace:p,getProps:h=B}=r,d=l(r,V),g=C(c,s),m=encodeURI(g),v=i.pathname===m,w=P(i.pathname,m);return o.createElement("a",a({ref:t||n,"aria-current":v?"page":void 0},d,h({isCurrent:v,isPartiallyCurrent:w,href:g,location:i}),{href:g,onClick:e=>{if(d.onClick&&d.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=p;if("boolean"!=typeof p&&v){const e=l(a({},i.state),J);t=U(a({},u),e)}f(g,{state:u,replace:t})}}}))}));K.displayName="Link",K.propTypes={to:s.string.isRequired};class z extends o.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const Q=o.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function G({children:e}){const[t,n]=o.useState(),r=o.useRef(),s=o.useMemo((()=>({componentDidCatch:r,error:t,setError:n})),[t]);return o.createElement(Q.Provider,{value:s},o.createElement(z,{error:t,onError:(e,t)=>{n(e),null==r.current||r.current(e,t)}},e))}G.displayName="ReactUseErrorBoundaryContext";const Y=function(e){var t,n;function r(t){return o.createElement(G,null,o.createElement(e,a({key:"WrappedComponent"},t)))}return r.displayName=`WithErrorBoundary(${null!=(t=null!=(n=e.displayName)?n:e.name)?t:"Component"})`,r}((({history:e=d,children:t})=>{const{location:n}=e,[r,s]=o.useState({location:n}),[i]=function(e){const t=o.useContext(Q);t.componentDidCatch.current=void 0;const n=o.useCallback((()=>{t.setError(void 0)}),[]);return[t.error,n]}();if(o.useEffect((()=>{e._onTransitionComplete()}),[r.location]),o.useEffect((()=>{let t=!1;const n=e.listen((({location:e})=>{Promise.resolve().then((()=>{requestAnimationFrame((()=>{t||s({location:e})}))}))}));return()=>{t=!0,n()}}),[]),i){if(!x(i))throw i;f(i.uri,{replace:!0})}return o.createElement(v.Provider,{value:r},"function"==typeof t?t(r):t||null)})),X=({children:e})=>{const t=b();return t?e(t):o.createElement(Y,null,e)},Z=({url:e,children:t})=>{const n=e.indexOf("?");let r,s="";return n>-1?(r=e.substring(0,n),s=e.substring(n)):r=e,o.createElement(v.Provider,{value:{location:{pathname:r,search:s,hash:""}}},t)},ee=({path:e,children:t})=>{const{baseuri:n}=y(),{location:r}=b(),o=C(e,n),s=O(o,r.pathname);return t({location:r,match:s?a({},s.params,{uri:s.uri,path:e}):null})},te=["uri","location","component"],ne=["children","style","component","uri","location"],re=e=>{let{uri:t,location:n,component:r}=e,s=l(e,te);return o.createElement(se,a({},s,{component:r,uri:t,location:n}))};let oe=0;const se=e=>{let{children:t,style:n,component:r="div",uri:s,location:i}=e,c=l(e,ne);const u=o.useRef(),p=o.useRef(!0),h=o.useRef(s),d=o.useRef(i.pathname),f=o.useRef(!1);o.useEffect((()=>(oe++,g(),()=>{oe--,0===oe&&(p.current=!0)})),[]),o.useEffect((()=>{let e=!1,t=!1;s!==h.current&&(h.current=s,e=!0),i.pathname!==d.current&&(d.current=i.pathname,t=!0),f.current=e||t&&i.pathname===s,f.current&&g()}),[s,i]);const g=o.useCallback((()=>{var e;p.current?p.current=!1:(e=u.current,f.current&&e&&e.focus())}),[]);return o.createElement(r,a({style:a({outline:"none"},n),tabIndex:"-1",ref:u},c),t)},ie=["location","primary","children","basepath","baseuri","component"],ae=e=>{const t=y(),n=b();return o.createElement(le,a({},t,n,e))};function le(e){const{location:t,primary:n=!0,children:r,basepath:s,component:i="div"}=e,c=l(e,ie),u=o.Children.toArray(r).reduce(((e,t)=>{const n=H(s)(t);return e.concat(n)}),[]),{pathname:p}=t,h=R(u,p);if(h){const{params:e,uri:r,route:l,route:{value:u}}=h,p=l.default?s:l.path.replace(/\*$/,""),d=a({},e,{uri:r,location:t}),f=o.cloneElement(u,d,u.props.children?o.createElement(ae,{location:t,primary:n},u.props.children):void 0),g=n?re:i,v=n?a({uri:r,location:t,component:i},c):c;return o.createElement(m.Provider,{value:{baseuri:r,basepath:p}},o.createElement(g,v,f))}return null}const ce=()=>{const e=b();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},ue=()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},pe=()=>{const e=y();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");const t=ce(),n=O(e.basepath,t.pathname);return n?n.params:null},he=e=>
2{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=y();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");const n=ce(),r=C(e,t.baseuri),o=O(r,n.pathname);return o?a({},o.params,{uri:o.uri,path:e}):null}},7078:function(e,t,n){"use strict";n.d(t,{Fe:function(){return d},N_:function(){return S},Rr:function(){return l},Zf:function(){return y},oo:function(){return k}});var r=n(5556),o=n(6540),s=n(6462),i=n(6395);function a(){return a=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},a.apply(this,arguments)}function l(e){let t=e||"/",n="",r="";const o=t.indexOf("#");-1!==o&&(r=t.slice(o),t=t.slice(0,o));const s=t.indexOf("?");return-1!==s&&(n=t.slice(s),t=t.slice(0,s)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}const c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{if("string"==typeof e)return!(e=>c.test(e))(e)},p=()=>"",h=()=>"";function d(e,t=p()){var n;if(!u(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const r=null!=(n=null!=t?t:h())?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${e.startsWith("/")?e:`/${e}`}`}const f=e=>null==e?void 0:e.startsWith("/");function g(e,t){const{pathname:n,search:r,hash:o}=l(e);return`${(0,i.T)(n,t)}${r}${o}`}const m=(e,t)=>"number"==typeof e?e:u(e)?f(e)?function(e){const t=d(e),n="always";return g(t,n)}(e):function(e,t){if(f(e))return e;const n="always",r=(0,s.resolve)(e,t);return g(r,n)}(e,t):e,v=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function y(e){return d(e,h())}const b={activeClassName:r.string,activeStyle:r.object,partiallyActive:r.bool};function w(e){return o.createElement(s.Location,null,(({location:t})=>o.createElement(x,a({},e,{_location:t}))))}class x extends o.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:a({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=l(m(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){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=((e,t)=>{const n=new window.IntersectionObserver((n=>{n.forEach((n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)}))}));return n.observe(e),{instance:n,el:e}})(e,(e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:i,state:c,replace:p,_location:h}=e,d=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}(e,v),f=m(t,h.pathname);return u(f)?o.createElement(s.Link,a({to:f,state:c,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{i&&i(e);const t=l(f);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(r&&r(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=p;const n=encodeURI(f)===h.pathname;"boolean"!=typeof p&&n&&(t=!0),window.___navigate(f,{state:c,replace:t})}return!0}},d)):o.createElement("a",a({href:f},d))}}x.propTypes=a({},b,{onClick:r.func,to:r.string.isRequired,replace:r.bool,state:r.object});const S=o.forwardRef(((e,t)=>o.createElement(w,a({innerRef:t},e)))),k=(e,t)=>{window.___navigate(m(e,window.location.pathname),t)}},5535:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return f},ScriptStrategy:function(){return c},collectedScriptsByPage:function(){return a},scriptCache:function(){return h},scriptCallbackCache:function(){return d}});
2var r=n(6540),o=n(6462);function s(){return s=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},s.apply(this,arguments)}const i=new Map,a={get:e=>i.get(e)||[],set(e,t){const n=i.get(e)||[];n.push(t),i.set(e,n)},delete(e){i.delete(e)}},l="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var c,u;(u=c||(c={})).postHydrate="post-hydrate",u.idle="idle",u.offMainThread="off-main-thread";const p=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),h=new Set,d=new Map;function f(e){return r.createElement(o.Location,null,(()=>r.createElement(g,e)))}function g(e){const{src:t,strategy:n=c.postHydrate}=e||{},{pathname:i}=(0,o.useLocation)();if((0,r.useEffect)((()=>{let t;switch(n){case c.postHydrate:t=m(e);break;case c.idle:l((()=>{t=m(e)}));break;case c.offMainThread:{const t=y(e);a.set(i,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:r}=t||{};n&&(null==e||e.removeEventListener("load",n)),r&&(null==e||e.removeEventListener("error",r)),null==e||e.remove()}}),[]),n===c.offMainThread){const o=v(e),l=y(e);return"undefined"==typeof window&&a.set(i,l),r.createElement("script",o?s({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},l,{dangerouslySetInnerHTML:{__html:v(e)}}):s({type:"text/partytown",src:b(t),"data-strategy":n,crossOrigin:"anonymous"},l))}return null}function m(e){const{id:t,src:n,strategy:r=c.postHydrate,onLoad:o,onError:i}=e||{},a=t||n,l=["load","error"],u={load:o,error:i};if(a){for(const e of l)if(null!=u&&u[e]){var p;const t=d.get(a)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var f,g;n.push(null==u?void 0:u[e]),null!=t&&null!=(p=t[e])&&p.event?null==u||null==(f=u[e])||f.call(u,null==t||null==(g=t[e])?void 0:g.event):d.set(a,s({},t,{[e]:{callbacks:n}}))}if(h.has(a))return null}const m=v(e),b=y(e),x=document.createElement("script");t&&(x.id=t),x.dataset.strategy=r;for(const[s,c]of Object.entries(b))x.setAttribute(s,c);m&&(x.textContent=m),n&&(x.src=n);const S={};if(a){for(const e of l){const t=t=>w(t,a,e);x.addEventListener(e,t),S[`${e}Callback`]=t}h.add(a)}return document.body.appendChild(x),{script:x,loadCallback:S.loadCallback,errorCallback:S.errorCallback}}function v(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:r=""}=t||{};return r||n}function y(e){const t={};for(const[n,r]of Object.entries(e))p.has(n)||(t[n]=r);return t}function b(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function w(e,t,n){const r=d.get(t)||{};for(const s of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;s(e)}d.set(t,{[n]:{event:e}})}},2389:function(e,t,n){"use strict";n.r(t),n.d(t,{I18nContext:function(){return U},I18nextProvider:function(){return z},Trans:function(){return V},TransWithoutContext:function(){return I},Translation:function(){return K},composeInitialProps:function(){return H},date:function(){return Y},getDefaults:function(){return C},getI18n:function(){return L},getInitialProps:function(){return W},initReactI18next:function(){return M},number:function(){return Z},plural:function(){return te},select:function(){return ee},selectOrdinal:function(){return ne},setDefaults:function(){return O},setI18n:function(){return _},time:function(){return X},useSSR:function(){return Q},useTranslation:function(){return q},withSSR:function(){return G},withTranslation:function(){return B}});var r=n(6540),o=n(4915),s=n.n(o),i=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function a(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(s()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(i),a=null;null!==(a=o.exec(e));
2)if(a[0].trim())if(a[1]){var l=a[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attrs[c[0]]=c[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var l=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,u=Object.create(null);function p(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(p,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var h={parse:function(e,t){t||(t={}),t.components||(t.components=u);var n,r=[],o=[],s=-1,i=!1;if(0!==e.indexOf("<")){var p=e.indexOf("<");r.push({type:"text",content:-1===p?e:e.substring(0,p)})}return e.replace(l,(function(l,u){if(i){if(l!=="</"+n.name+">")return;i=!1}var p,h="/"!==l.charAt(1),d=l.startsWith("\x3c!--"),f=u+l.length,g=e.charAt(f);if(d){var m=a(l);return s<0?(r.push(m),r):((p=o[s]).children.push(m),r)}if(h&&(s++,"tag"===(n=a(l)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!g||"<"===g||n.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===s&&r.push(n),(p=o[s-1])&&p.children.push(n),o[s]=n),(!h||n.voidElement)&&(s>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(s--,n=-1===s?r:o[s]),!i&&"<"!==g&&g)){p=-1===s?r:o[s].children;var v=e.indexOf("<",f),y=e.slice(f,-1===v?void 0:v);c.test(y)&&(y=" "),(v>-1&&s+p.length>=0||" "!==y)&&p.push({type:"text",content:y})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+p("",t)}),"")}},d=h;function f(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const g={};function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x(t[0])&&g[t[0]]||(x(t[0])&&(g[t[0]]=new Date),f(...t))}const v=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},y=(e,t,n)=>{e.loadNamespaces(t,v(e,n))},b=(e,t,n,r)=>{x(n)&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,v(e,r))},w=e=>e.displayName||e.name||(x(e)&&e.length>0?e:"Unknown"),x=e=>"string"==typeof e,S=e=>"object"==typeof e&&null!==e,k=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,E={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},P=e=>E[e];let R={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(k,P)};const O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R={...R,...e}},C=()=>R;let N;const _=e=>{N=e},L=()=>N,j=(e,t)=>{if(!e)return!1;const n=e.props?e.props.children:e.children;return t?n.length>0:!!n},$=e=>{if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?A(t):t},A=e=>Array.isArray(e)?e:[e],T=(e,t)=>
vendor: 4,428 bytes, line 2
2{if(!e)return"";let n="";const o=A(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return o.forEach(((e,o)=>{if(x(e))n+=`${e}`;else if((0,r.isValidElement)(e)){const{props:r,type:i}=e,a=Object.keys(r).length,l=s.indexOf(i)>-1,c=r.children;if(c||!l||a)if(!c&&(!l||a)||r.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(l&&1===a&&x(c))n+=`<${i}>${c}</${i}>`;else{const e=T(c,t);n+=`<${o}>${e}</${o}>`}else n+=`<${i}/>`}else if(null===e)f("Trans: the passed in value is invalid - seems you passed in a null child.");else if(S(e)){const{format:t,...r}=e,o=Object.keys(r);if(1===o.length){const e=t?`${o[0]}, ${t}`:o[0];n+=`{{${e}}}`}else f("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else f("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n},D=(e,t,n,o,s,i)=>{if(""===t)return[];const a=o.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map((e=>`<${e}`)).join("|")).test(t);if(!e&&!l&&!i)return[t];const c={},u=e=>{A(e).forEach((e=>{x(e)||(j(e)?u($(e)):S(e)&&!(0,r.isValidElement)(e)&&Object.assign(c,e))}))};u(e);const p=d.parse(`<0>${t}</0>`),h={...c,...s},f=(e,t,n)=>{const o=$(e),s=m(o,t.children,n);return(e=>Array.isArray(e)&&e.every(r.isValidElement))(o)&&0===s.length||e.props&&e.props.i18nIsDynamicList?o:s},g=(e,t,n,o,s)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:o},s?void 0:t))):n.push(...r.Children.map([e],(e=>{const n={...e.props};return delete n.i18nIsDynamicList,(0,r.createElement)(e.type,{...n,key:o,ref:e.ref},s?null:t)})))},m=(t,s,c)=>{const u=A(t);return A(s).reduce(((t,s,p)=>{const d=s.children&&s.children[0]&&s.children[0].content&&n.services.interpolator.interpolate(s.children[0].content,h,n.language);if("tag"===s.type){let i=u[parseInt(s.name,10)];1!==c.length||i||(i=c[0][s.name]),i||(i={});const v=0!==Object.keys(s.attrs).length?((e,t)=>{const n={...t};return n.props=Object.assign(e.props,t.props),n})({props:s.attrs},i):i,y=(0,r.isValidElement)(v),b=y&&j(s,!0)&&!s.voidElement,w=l&&S(v)&&v.dummy&&!y,k=S(e)&&Object.hasOwnProperty.call(e,s.name);if(x(v)){const e=n.services.interpolator.interpolate(v,h,n.language);t.push(e)}else if(j(v)||b){const e=f(v,s,c);g(v,e,t,p)}else if(w){const e=m(u,s.children,c);g(v,e,t,p)}else if(Number.isNaN(parseFloat(s.name)))if(k){const e=f(v,s,c);g(v,e,t,p,s.voidElement)}else if(o.transSupportBasicHtmlNodes&&a.indexOf(s.name)>-1)if(s.voidElement)t.push((0,r.createElement)(s.name,{key:`${s.name}-${p}`}));else{const e=m(u,s.children,c);t.push((0,r.createElement)(s.name,{key:`${s.name}-${p}`},e))}else if(s.voidElement)t.push(`<${s.name} />`);else{const e=m(u,s.children,c);t.push(`<${s.name}>${e}</${s.name}>`)}else if(S(v)&&!y){const e=s.children[0]?d:null;e&&t.push(e)}else g(v,d,t,p,1!==s.children.length||!d)}else if("text"===s.type){const e=o.transWrapTextNodes,a=i?o.unescape(n.services.interpolator.interpolate(s.content,h,n.language)):n.services.interpolator.interpolate(s.content,h,n.language);e?t.push((0,r.createElement)(e,{key:`${s.name}-${p}`},a)):t.push(a)}return t}),[])},v=m([{dummy:!0,children:e||[]}],p,A(e||[]));return $(v[0])};function I(e){let{children:t,count:n,parent:o,i18nKey:s,context:i,tOptions:a={},values:l,defaults:c,components:u,ns:p,i18n:h,t:d,shouldUnescape:f,...g}=e;const v=h||L();if(!v)return m("You will need to pass in an i18next instance by using i18nextReactModule"),t;const y=d||v.t.bind(v)||(e=>e),b={...C(),...v.options&&v.options.react};let w=p||y.ns||v.options&&v.options.defaultNS;w=x(w)?[w]:w||["translation"];const S=T(t,b),k=c||S||b.transEmptyNodeValue||s,{hashTransKey:E}=b,P=s||(E?E(S||k):S||k);v.options&&v.options.interpolation&&v.options.interpolation.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});const R=l||void 0!==n||!t?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},O={...a,context:i||a.context,count:n,...l,...R,defaultValue:k,ns:w},N=P?y(P,O):k;u&&Object.keys(u).forEach((e=>{const t=u[e];"function"==typeof t.type||!t.props||!t.props.children||N.indexOf(`${e}/>`)<0&&N.indexOf(`${e} />`)<0||(u[e]=(0,r.createElement)((function(){return(0,r.createElement)(r.Fragment,null,t)})))}
2));const _=D(u||t,N,v,b,O,f),j=void 0!==o?o:b.defaultTransParent;return j?(0,r.createElement)(j,g,_):_}const M={type:"3rdParty",init(e){O(e.options.react),_(e)}},U=(0,r.createContext)();class F{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)}const H=e=>async t=>({...e.getInitialProps?await e.getInitialProps(t):{},...W()}),W=()=>{const e=L(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((n=>{r[n]={},t.forEach((t=>{r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n};function V(e){let{children:t,count:n,parent:o,i18nKey:s,context:i,tOptions:a={},values:l,defaults:c,components:u,ns:p,i18n:h,t:d,shouldUnescape:f,...g}=e;const{i18n:m,defaultNS:v}=(0,r.useContext)(U)||{},y=h||m||L(),b=d||y&&y.t.bind(y);return I({children:t,count:n,parent:o,i18nKey:s,context:i,tOptions:a,values:l,defaults:c,components:u,ns:p||b&&b.ns||v||y&&y.options&&y.options.defaultNS,i18n:y,t:d,shouldUnescape:f,...g})}const J=(e,t,n,r)=>e.getFixedT(t,n,r),q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:s}=(0,r.useContext)(U)||{},i=n||o||L();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new F),!i){m("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>x(t)?t:S(t)&&x(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&m("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...C(),...i.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||s||i.options&&i.options.defaultNS;u=x(u)?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const p=(i.isInitialized||i.initializedStoreOnce)&&u.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,s=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(s,e)))}(e,t,n):(m("i18n.languages were undefined or empty",t.languages),!0)}(e,i,a))),h=((e,t,n,o)=>(0,r.useCallback)(J(e,t,n,o),[e,t,n,o]))(i,t.lng||null,"fallback"===a.nsMode?u:u[0],c),d=()=>h,f=()=>J(i,t.lng||null,"fallback"===a.nsMode?u:u[0],c),[g,v]=(0,r.useState)(d);let w=u.join();t.lng&&(w=`${t.lng}${w}`);const k=((e,t)=>{const n=(0,r.useRef)();return(0,r.useEffect)((()=>{n.current=t?n.current:e}),[e,t]),n.current})(w),E=(0,r.useRef)(!0);(0,r.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=a;E.current=!0,p||l||(t.lng?b(i,t.lng,u,(()=>{E.current&&v(f)})):y(i,u,(()=>{E.current&&v(f)}))),p&&k&&k!==w&&E.current&&v(f);const r=()=>{E.current&&v(f)};return e&&i&&i.on(e,r),n&&i&&i.store.on(n,r),()=>{E.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,r))),n&&i&&n.split(" ").forEach((e=>i.store.off(e,r)))}}),[i,w]),(0,r.useEffect)((()=>{E.current&&p&&v(d)}),[i,c,p]);const P=[g,i,p];if(P.t=g,P.i18n=i,P.ready=p,p)return P;if(!p&&!l)return P;throw new Promise((e=>{t.lng?b(i,t.lng,u,(()=>e())):y(i,u,(()=>e()))}))},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function o(o){let{forwardedRef:s,...i}=o;const[a,l,c]=q(e,{...i,keyPrefix:t.keyPrefix}
2),u={...i,t:a,i18n:l,tReady:c};return t.withRef&&s?u.ref=s:!t.withRef&&s&&(u.forwardedRef=s),(0,r.createElement)(n,u)}o.displayName=`withI18nextTranslation(${w(n)})`,o.WrappedComponent=n;return t.withRef?(0,r.forwardRef)(((e,t)=>(0,r.createElement)(o,Object.assign({},e,{forwardedRef:t})))):o}};function K(e){const{ns:t,children:n,...r}=e,[o,s,i]=q(t,r);return n(o,{i18n:s,lng:s.language},i)}function z(e){let{i18n:t,defaultNS:n,children:o}=e;const s=(0,r.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,r.createElement)(U.Provider,{value:s},o)}const Q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{i18n:o}=n,{i18n:s}=(0,r.useContext)(U)||{},i=o||s||L();i.options&&i.options.isClone||(e&&!i.initializedStoreOnce&&(i.services.resourceStore.data=e,i.options.ns=Object.values(e).reduce(((e,t)=>(Object.keys(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)})),e)),i.options.ns),i.initializedStoreOnce=!0,i.isInitialized=!0),t&&!i.initializedLanguageOnce&&(i.changeLanguage(t),i.initializedLanguageOnce=!0))},G=()=>function(e){function t(t){let{initialI18nStore:n,initialLanguage:o,...s}=t;return Q(n,o),(0,r.createElement)(e,{...s})}return t.getInitialProps=H(e),t.displayName=`withI18nextSSR(${w(e)})`,t.WrappedComponent=e,t},Y=()=>"",X=()=>"",Z=()=>"",ee=()=>"",te=()=>"",ne=()=>""}},function(e){e.O(0,[869,593],(function(){return t=6498,e(e.s=t);var t}));e.O()}]); 3//# sourceMappingURL=app-8d77e62c388dcabfb648.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.