(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{60400:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))})},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},92771:function(e,t){"use strict";t.__esModule=!0,t.default=function(){var e=null;return{mountedInstances:new Set,updateHead:function(t){var r=e=Promise.resolve().then((function(){if(r===e){e=null;var o={};t.forEach((function(e){"link"===e.type&&e.props["data-optimized-fonts"]&&!document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]'))&&(e.props.href=e.props["data-href"],e.props["data-href"]=void 0);var t=o[e.type]||[];t.push(e),o[e.type]=t}));var a=o.title?o.title[0]:null,i="";if(a){var c=a.props.children;i="string"===typeof c?c:Array.isArray(c)?c.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach((function(e){!function(e,t){var r=document.getElementsByTagName("head")[0],o=r.querySelector("meta[name=next-head-count]");0;for(var a=Number(o.content),i=[],c=0,u=o.previousElementSibling;c0&&void 0!==s[0]?s[0]:{},r=I,e.prev=3,e.next=6,re.routeLoader.whenEntrypoint("/_app");case 6:if(!("error"in(o=e.sent))){e.next=9;break}throw o.error;case 9:a=o.component,i=o.exports,ie=a,i&&i.reportWebVitals&&(ce=function(e){var t,r=e.id,n=e.name,o=e.startTime,a=e.value,c=e.duration,u=e.entryType,s=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);s&&s.length&&(t=s[0].startTime),i.reportWebVitals({id:r||l,name:n,startTime:o||t,value:null==a?c:a,label:"mark"===u||"measure"===u?"custom":"web-vital"})}),e.next=16;break;case 16:return e.next=18,re.routeLoader.whenEntrypoint(j);case 18:e.t0=e.sent;case 19:if(!("error"in(c=e.t0))){e.next=22;break}throw c.error;case 22:le=c.component,e.next=27;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(3),r=e.t1;case 32:if(!window.__NEXT_PRELOADREADY){e.next=36;break}return e.next=36,window.__NEXT_PRELOADREADY(W);case 36:return t.router=ae=(0,T.createRouter)(j,N,$,{initialProps:M,pageLoader:re,App:ie,Component:le,wrapApp:Se,err:r,isFallback:Boolean(q),subscription:function(e,t,r){return de(Object.assign({},e,{App:t,scroll:r}))},locale:B,locales:G,defaultLocale:z,domainLocales:H,isPreview:V}),de(u={App:ie,initial:!0,Component:le,props:M,err:r}),e.abrupt("return",he);case 43:return e.abrupt("return",{emitter:he,render:de,renderCtx:u});case 44:case"end":return e.stop()}}),e,null,[[3,29]])})));return function(){return e.apply(this,arguments)}}();function de(e){return ve.apply(this,arguments)}function ve(){return(ve=o(n.mark((function e(t){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,me(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,Pe(t);case 7:e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(4),!e.t0.cancelled){e.next=13;break}throw e.t0;case 13:return e.next=16,me((0,d.default)({},t,{err:e.t0}));case 16:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function me(e){var t=e.App,r=e.err;return console.error(r),re.loadPage("/_error").then((function(n){var o=n.page,a=n.styleSheets,i=Se(t),c={Component:o,AppTree:i,router:ae,ctx:{err:r,pathname:j,query:N,asPath:$,AppTree:i}};return Promise.resolve(e.props?e.props:(0,P.loadGetInitialProps)(t,c)).then((function(t){return Pe((0,d.default)({},e,{err:r,Component:o,styleSheets:a,props:t}))}))}))}t.default=pe;var ye="function"===typeof m.default.hydrate;function ge(){P.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),ce&&performance.getEntriesByName("Next.js-hydration").forEach(ce),we())}function be(){if(P.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),ce&&(performance.getEntriesByName("Next.js-render").forEach(ce),performance.getEntriesByName("Next.js-route-change-to-render").forEach(ce)),we(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function we(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function _e(e){var t=e.children;return v.default.createElement(fe,{fn:function(e){return me({App:ie,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},v.default.createElement(b.RouterContext.Provider,{value:(0,T.makePublicRouterInstance)(ae)},v.default.createElement(y.HeadManagerContext.Provider,{value:ue},t)))}var xe,Se=function(e){return function(t){var r=(0,d.default)({},t,{Component:le,err:I,router:ae});return v.default.createElement(_e,null,v.default.createElement(e,r))}};function Pe(e){var t=e.App,r=e.Component,n=e.props,o=e.err,a="initial"in e?void 0:e.styleSheets;r=r||xe.Component,n=n||xe.props;var i=(0,d.default)({},n,{Component:r,err:o,router:ae});xe=i;var c,u=!1,s=new Promise((function(e,t){oe&&oe(),c=function(){oe=null,e()},oe=function(){u=!0,oe=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function l(){c()}!function(){if(!a)return!1;var e=O(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");a.forEach((function(e){var r=e.href,o=e.text;if(!t.has(r)){var a=document.createElement("style");a.setAttribute("data-n-href",r),a.setAttribute("media","x"),n&&a.setAttribute("nonce",n),document.head.appendChild(a),a.appendChild(document.createTextNode(o))}}))}();var f=v.default.createElement(v.default.Fragment,null,v.default.createElement(Le,{callback:function(){if(a&&!u){for(var t=new Set(a.map((function(e){return e.href}))),r=O(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),o=0;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o-1||r>-1)&&(e=e.substring(0,t>-1?t:r)),e}function R(e){return(e=k(e))===x||e.startsWith("/")}function C(e){return P(e,x)}function T(e){return(e=e.slice(x.length)).startsWith("/")||(e="/".concat(e)),e}function A(e){if(e.startsWith("/")||e.startsWith("#"))return!0;try{var t=(0,d.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&R(r.pathname)}catch(n){return!1}}function O(e,t,r){var n="",o=(0,w.getRouteRegex)(e),a=o.groups,i=(t!==e?(0,b.getRouteMatcher)(o)(t):"")||r;n=e;var c=Object.keys(a);return c.every((function(e){var t=i[e]||"",r=a[e],o=r.repeat,c=r.optional,u="[".concat(o?"...":"").concat(e,"]");return c&&(u="".concat(t?"":"/","[").concat(u,"]")),o&&!Array.isArray(t)&&(t=[t]),(c||e in i)&&(n=n.replace(u,o?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:c,result:n}}function M(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function I(e,t,r){var n;try{n=new URL(e,"http://n")}catch(p){n=new URL("/","http://n")}var o="string"===typeof t?t:(0,d.formatWithValidation)(t);if(!A(o))return r?[o]:o;try{var a=new URL(o,n);a.pathname=(0,s.normalizePathTrailingSlash)(a.pathname);var i="";if((0,v.isDynamicRoute)(a.pathname)&&a.searchParams&&r){var c=(0,y.searchParamsToUrlQuery)(a.searchParams),u=O(a.pathname,a.pathname,c),l=u.result,f=u.params;l&&(i=(0,d.formatWithValidation)({pathname:l,hash:a.hash,query:M(c,f)}))}var h=a.origin===n.origin?a.href.slice(a.origin.length):a.href;return r?[h,i||h]:h}catch(p){return r?[o]:o}}function j(e){var t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function N(e,t,r){var n=I(e.asPath,t,!0),o=c(n,2),a=o[0],i=o[1],u=(0,d.getLocationOrigin)(),s=a.startsWith(u),l=i&&i.startsWith(u);a=j(a),i=i?j(i):i;var f=s?a:C(a),h=r?j(I(e.asPath,r)):i||a;return{url:f,as:l?h:C(h)}}function D(e,t){var r=(0,s.removePathTrailingSlash)((0,f.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((function(t){if((0,v.isDynamicRoute)(t)&&(0,w.getRouteRegex)(t).re.test(r))return e=t,!0})),(0,s.removePathTrailingSlash)(e))}var F=Symbol("SSG_DATA_NOT_FOUND");function U(e,t){return fetch(e,{credentials:"same-origin"}).then((function(r){if(!r.ok){if(t>1&&r.status>=500)return U(e,t-1);if(404===r.status)return r.json().then((function(e){if(e.notFound)return{notFound:F};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.json()}))}function W(e,t){return U(e,t?3:1).catch((function(e){throw t||(0,l.markAssetError)(e),e}))}var q=function(){function e(t,r,n,o){var i=this,c=o.initialProps,l=o.pageLoader,f=o.App,h=o.wrapApp,p=o.Component,y=o.err,g=o.subscription,b=o.isFallback,w=o.locale,_=o.locales,S=o.defaultLocale,P=o.domainLocales,E=o.isPreview;a(this,e),this.route=void 0,this.pathname=void 0,this.query=void 0,this.asPath=void 0,this.basePath=void 0,this.components=void 0,this.sdc={},this.sdr={},this.sub=void 0,this.clc=void 0,this.pageLoader=void 0,this._bps=void 0,this.events=void 0,this._wrapApp=void 0,this.isSsr=void 0,this.isFallback=void 0,this._inFlightRoute=void 0,this._shallow=void 0,this.locale=void 0,this.locales=void 0,this.defaultLocale=void 0,this.domainLocales=void 0,this.isReady=void 0,this.isPreview=void 0,this.isLocaleDomain=void 0,this._idx=0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,o=t.options,a=t.idx;i._idx=a;var c=(0,m.parseRelativeUrl)(r).pathname;i.isSsr&&n===i.asPath&&c===i.pathname||i._bps&&!i._bps(t)||i.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&i._shallow,locale:o.locale||i.defaultLocale}),undefined)}}else{var u=i.pathname,s=i.query;i.changeState("replaceState",(0,d.formatWithValidation)({pathname:C(u),query:s}),(0,d.getURL)())}},this.route=(0,s.removePathTrailingSlash)(t),this.components={},"/_error"!==t&&(this.components[this.route]={Component:p,initial:!0,props:c,err:y,__N_SSG:c&&c.__N_SSG,__N_SSP:c&&c.__N_SSP}),this.components["/_app"]={Component:f,styleSheets:[]},this.events=e.events,this.pageLoader=l,this.pathname=t,this.query=r;var L=(0,v.isDynamicRoute)(t)&&self.__NEXT_DATA__.autoExport;this.asPath=L?t:n,this.basePath=x,this.sub=g,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isFallback=b,this.isReady=!(!self.__NEXT_DATA__.gssp&&!self.__NEXT_DATA__.gip&&(L||self.location.search)),this.isPreview=!!E,this.isLocaleDomain=!1,this.locale=w,this.locales=_,this.defaultLocale=S,this.domainLocales=P,this.isLocaleDomain=!!u(P,self.location.hostname),"//"!==n.substr(0,2)&&this.changeState("replaceState",(0,d.formatWithValidation)({pathname:C(t),query:r}),(0,d.getURL)(),{locale:w}),window.addEventListener("popstate",this.onPopState)}return i(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=N(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=N(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=o(n.mark((function t(r,o,a,i,c){var f,p,y,g,_,x,S,P,k,I,j,U,W,q,B,G,H,V,z,X,$,Q,Y,J,K,Z,ee,te,re,ne,oe,ae,ie,ce,ue,se,le,fe,he,pe,de;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A(o)){t.next=3;break}return window.location.href=o,t.abrupt("return",!1);case 3:if(p=o===a||i._h,i._h&&(this.isReady=!0),i.scroll=!(null!=(f=i.scroll)&&!f),y=i.locale!==this.locale,this.locale=!1===i.locale?this.defaultLocale:i.locale||this.locale,"undefined"===typeof i.locale&&(i.locale=this.locale),g=(0,m.parseRelativeUrl)(R(a)?T(a):a),(_=(0,h.normalizeLocalePath)(g.pathname,this.locales)).detectedLocale&&(this.locale=_.detectedLocale,g.pathname=C(g.pathname),a=(0,d.formatWithValidation)(g),o=C((0,h.normalizeLocalePath)(R(o)?T(o):o,this.locales).pathname)),x=!1,null!=(S=this.locales)&&S.includes(this.locale)||(g.pathname=E(g.pathname,this.locale),window.location.href=(0,d.formatWithValidation)(g),x=!0),P=u(this.domainLocales,void 0,this.locale),!x&&P&&this.isLocaleDomain&&self.location.hostname!==P.domain&&(k=T(a),window.location.href="http".concat(P.http?"":"s","://").concat(P.domain).concat(C("".concat(this.locale===P.defaultLocale?"":"/".concat(this.locale)).concat("/"===k?"":k)||"/")),x=!0),!x){t.next=19;break}return t.abrupt("return",new Promise((function(){})));case 19:if(i._h||(this.isSsr=!1),d.ST&&performance.mark("routeChange"),I=i.shallow,j={shallow:void 0!==I&&I},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,j),a=C(E(R(a)?T(a):a,i.locale,this.defaultLocale)),U=L(R(a)?T(a):a,this.locale),this._inFlightRoute=a,i._h||!this.onlyAHashChange(U)){t.next=35;break}return this.asPath=U,e.events.emit("hashChangeStart",a,j),this.changeState(r,o,a,i),this.scrollToHash(U),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",a,j),t.abrupt("return",!0);case 35:return W=(0,m.parseRelativeUrl)(o),q=W.pathname,B=W.query,t.prev=37,t.next=40,this.pageLoader.getPageList();case 40:return G=t.sent,t.next=43,(0,l.getClientBuildManifest)();case 43:H=t.sent,H.__rewrites,t.next=51;break;case 47:return t.prev=47,t.t0=t.catch(37),window.location.href=a,t.abrupt("return",!1);case 51:if(this.urlIsNew(U)||y||(r="replaceState"),V=a,q=q?(0,s.removePathTrailingSlash)(T(q)):q,p&&"/_error"!==q&&(W.pathname=D(q,G),W.pathname!==q&&(q=W.pathname,o=(0,d.formatWithValidation)(W))),z=(0,s.removePathTrailingSlash)(q),A(a)){t.next=61;break}t.next=59;break;case 59:return window.location.href=a,t.abrupt("return",!1);case 61:if(V=L(T(V),this.locale),!(0,v.isDynamicRoute)(z)){t.next=77;break}if(X=(0,m.parseRelativeUrl)(V),$=X.pathname,Q=(0,w.getRouteRegex)(z),Y=(0,b.getRouteMatcher)(Q)($),K=(J=z===$)?O(z,$,B):{},Y&&(!J||K.result)){t.next=76;break}if(!((Z=Object.keys(Q.groups).filter((function(e){return!B[e]}))).length>0)){t.next=74;break}throw new Error((J?"The provided `href` (".concat(o,") value is missing query values (").concat(Z.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat($,") is incompatible with the `href` value (").concat(z,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(J?"href-interpolation-failed":"incompatible-href-as"));case 74:t.next=77;break;case 76:J?a=(0,d.formatWithValidation)(Object.assign({},X,{pathname:K.result,query:M(B,K.params)})):Object.assign(B,Y);case 77:return e.events.emit("routeChangeStart",a,j),t.prev=78,t.next=81,this.getRouteInfo(z,q,B,a,V,j);case 81:if(re=t.sent,oe=(ne=re).error,ae=ne.props,ie=ne.__N_SSG,ce=ne.__N_SSP,!ie&&!ce||!ae){t.next=108;break}if(!ae.pageProps||!ae.pageProps.__N_REDIRECT){t.next=94;break}if(!(ue=ae.pageProps.__N_REDIRECT).startsWith("/")){t.next=92;break}if((se=(0,m.parseRelativeUrl)(ue)).pathname=D(se.pathname,G),!G.includes(se.pathname)){t.next=92;break}return le=N(this,ue,ue),fe=le.url,he=le.as,t.abrupt("return",this.change(r,fe,he,i));case 92:return window.location.href=ue,t.abrupt("return",new Promise((function(){})));case 94:if(this.isPreview=!!ae.__N_PREVIEW,ae.notFound!==F){t.next=108;break}return t.prev=96,t.next=99,this.fetchComponent("/404");case 99:pe="/404",t.next=105;break;case 102:t.prev=102,t.t1=t.catch(96),pe="/_error";case 105:return t.next=107,this.getRouteInfo(pe,pe,B,a,V,{shallow:!1});case 107:re=t.sent;case 108:return e.events.emit("beforeHistoryChange",a,j),this.changeState(r,o,a,i),de=i.shallow&&this.route===z,i._h&&"/_error"===q&&500===(null==(ee=self.__NEXT_DATA__.props)||null==(te=ee.pageProps)?void 0:te.statusCode)&&null!=ae&&ae.pageProps&&(ae.pageProps.statusCode=500),t.next=115,this.set(z,q,B,U,re,c||(de||!i.scroll?null:{x:0,y:0})).catch((function(e){if(!e.cancelled)throw e;oe=oe||e}));case 115:if(!oe){t.next=118;break}throw e.events.emit("routeChangeError",oe,U,j),oe;case 118:return this.locale&&(document.documentElement.lang=this.locale),e.events.emit("routeChangeComplete",a,j),t.abrupt("return",!0);case 123:if(t.prev=123,t.t2=t.catch(78),!t.t2.cancelled){t.next=127;break}return t.abrupt("return",!1);case 127:throw t.t2;case 128:case"end":return t.stop()}}),t,this,[[37,47],[78,123],[96,102]])})));return function(e,r,n,o,a){return t.apply(this,arguments)}}()},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&(0,d.getURL)()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",r))}},{key:"handleRouteInfoError",value:function(){var t=o(n.mark((function t(r,o,a,i,c,u){var s,f,h,p;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.cancelled){t.next=2;break}throw r;case 2:if(!(0,l.isAssetError)(r)&&!u){t.next=6;break}throw e.events.emit("routeChangeError",r,i,c),window.location.href=i,S();case 6:if(t.prev=6,"undefined"!==typeof s&&"undefined"!==typeof f){t.next=14;break}return t.next=11,this.fetchComponent("/_error");case 11:h=t.sent,s=h.page,f=h.styleSheets;case 14:if((p={props:undefined,Component:s,styleSheets:f,err:r,error:r}).props){t.next=26;break}return t.prev=16,t.next=19,this.getInitialProps(s,{err:r,pathname:o,query:a});case 19:p.props=t.sent,t.next=26;break;case 22:t.prev=22,t.t0=t.catch(16),console.error("Error in error page `getInitialProps`: ",t.t0),p.props={};case 26:return t.abrupt("return",p);case 29:return t.prev=29,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(t.t1,o,a,i,c,!0));case 32:case"end":return t.stop()}}),t,this,[[6,29],[16,22]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=o(n.mark((function e(t,r,o,a,i,c){var u,s,l,f,h,p,v,m,y=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u=this.components[t],!c.shallow||!u||this.route!==t){e.next=4;break}return e.abrupt("return",u);case 4:if(!(s=u&&"initial"in u?void 0:u)){e.next=9;break}e.t0=s,e.next=12;break;case 9:return e.next=11,this.fetchComponent(t).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}}));case 11:e.t0=e.sent;case 12:l=e.t0,f=l.Component,h=l.__N_SSG,p=l.__N_SSP,e.next=18;break;case 18:return(h||p)&&(v=this.pageLoader.getDataHref((0,d.formatWithValidation)({pathname:r,query:o}),i,h,this.locale)),e.next=21,this._getData((function(){return h?y._getStaticData(v):p?y._getServerData(v):y.getInitialProps(f,{pathname:r,query:o,asPath:a,locale:y.locale,locales:y.locales,defaultLocale:y.defaultLocale})}));case 21:return m=e.sent,l.props=m,this.components[t]=l,e.abrupt("return",l);case 27:return e.prev=27,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(e.t1,r,o,a,c));case 30:case"end":return e.stop()}}),e,this,[[0,27]])})));return function(t,r,n,o,a,i){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,o,a){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(o,a)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=this.asPath.split("#"),r=c(t,2),n=r[0],o=r[1],a=e.split("#"),i=c(a,2),u=i[0],s=i[1];return!(!s||n!==u||o!==s)||n===u&&o!==s}},{key:"scrollToHash",value:function(e){var t=e.split("#"),r=c(t,2)[1];if(""!==r&&"top"!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(){var e=o(n.mark((function e(t){var r,o,a,i,c,u,l,f,p,v,y,b,w=this,_=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=_.length>1&&void 0!==_[1]?_[1]:t,o=_.length>2&&void 0!==_[2]?_[2]:{},a=(0,m.parseRelativeUrl)(t),i=a.pathname,!1===o.locale&&(i=(0,h.normalizeLocalePath)(i,this.locales).pathname,a.pathname=i,t=(0,d.formatWithValidation)(a),c=(0,m.parseRelativeUrl)(r),u=(0,h.normalizeLocalePath)(c.pathname,this.locales),c.pathname=u.pathname,o.locale=u.detectedLocale||this.defaultLocale,r=(0,d.formatWithValidation)(c)),e.next=7,this.pageLoader.getPageList();case 7:l=e.sent,f=r,e.next=19;break;case 12:v=e.sent,p=v.__rewrites,y=(0,g.default)(C(E(r,this.locale)),l,p,a.query,(function(e){return D(e,l)}),this.locales),f=L(T(y.asPath),this.locale),y.matchedPage&&y.resolvedHref&&(i=y.resolvedHref,a.pathname=i,t=(0,d.formatWithValidation)(a)),e.next=21;break;case 19:a.pathname=D(a.pathname,l),a.pathname!==i&&(i=a.pathname,t=(0,d.formatWithValidation)(a));case 21:b=(0,s.removePathTrailingSlash)(i),e.next=24;break;case 24:return e.next=26,Promise.all([this.pageLoader._isSsg(b).then((function(e){return!!e&&w._getStaticData(w.pageLoader.getDataHref(t,f,!0,"undefined"!==typeof o.locale?o.locale:w.locale))})),this.pageLoader[o.priority?"loadPage":"prefetch"](b)]);case 26:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=o(n.mark((function e(t){var r,o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=this.clc=function(){r=!0},e.next=4,this.pageLoader.loadPage(t);case 4:if(a=e.sent,!r){e.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(t,'"'))).cancelled=!0,i;case 9:return o===this.clc&&(this.clc=null),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return e}))}},{key:"_getStaticData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve(this.sdc[r]):W(e,this.isSsr).then((function(e){return t.sdc[r]=e,e}))}},{key:"_getServerData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return this.sdr[r]?this.sdr[r]:this.sdr[r]=W(e,this.isSsr).then((function(e){return delete t.sdr[r],e})).catch((function(e){throw delete t.sdr[r],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",S(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();t.default=q,q.events=(0,p.default)()},7687:function(e,t,r){"use strict";t.__esModule=!0,t.formatUrl=function(e){var t=e.auth,r=e.hostname,o=e.protocol||"",i=e.pathname||"",c=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(s+=":"+e.port));u&&"object"===typeof u&&(u=String(n.urlQueryToSearchParams(u)));var l=e.search||u&&"?".concat(u)||"";o&&":"!==o.substr(-1)&&(o+=":");e.slashes||(!o||a.test(o))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s="");c&&"#"!==c[0]&&(c="#"+c);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(o).concat(s).concat(i).concat(l).concat(c)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r(74915));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var a=/https?|ftp|gopher|file/},77892:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},93288:function(e,t){"use strict";t.__esModule=!0,t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},94436:function(e,t,r){"use strict";t.__esModule=!0,t.parseRelativeUrl=function(e,t){var r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):r,i=new URL(e,a),c=i.pathname,u=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:c,query:(0,o.searchParamsToUrlQuery)(u),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(13937),o=r(74915)},74915:function(e,t,r){"use strict";var n=r(53848);function o(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}t.__esModule=!0,t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(a,o(e))})):t.set(a,o(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:-1,delta:0,entries:[],id:n(),isFinal:!1}},a=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return r.observe({type:e,buffered:!0}),r}}catch(e){}},i=!1,c=!1,u=function(e){i=!e.persisted},s=function(){addEventListener("pagehide",u),addEventListener("beforeunload",(function(){}))},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c||(s(),c=!0),addEventListener("visibilitychange",(function(t){var r=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:r,isUnloading:i})}),{capture:!0,once:t})},f=function(e,t,r,n){var o;return function(){r&&t.isFinal&&r.disconnect(),t.value>=0&&(n||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(o||0),(t.delta||t.isFinal||void 0===o)&&(e(t),o=t.value))}},h=function(){return void 0===t&&(t="hidden"===document.visibilityState?0:1/0,l((function(e){var r=e.timeStamp;return t=r}),!0)),{get timeStamp(){return t}}},p=function(){return r||(r=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),r};e.getCLS=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o("CLS",0),i=function(e){e.hadRecentInput||(n.value+=e.value,n.entries.push(e),t())},c=a("layout-shift",i);c&&(t=f(e,n,c,r),l((function(e){var r=e.isUnloading;c.takeRecords().map(i),r&&(n.isFinal=!0),t()})))},e.getFCP=function(e){var t,r=o("FCP"),n=h(),i=a("paint",(function(e){"first-contentful-paint"===e.name&&e.startTime1&&void 0!==arguments[1]&&arguments[1],n=o("LCP"),i=h(),c=function(e){var r=e.startTime;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},14453:function(){}},function(e){e.O(0,[9774],(function(){return t=95778,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=main-e7cf26dc5b7b25dfa74f.js.map