(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{18250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualNode=o,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 a={};t.forEach((function(e){if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]')))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}var t=a[e.type]||[];t.push(e),a[e.type]=t}));var i=a.title?a.title[0]:null,u="";if(i){var c=i.props.children;u="string"===typeof c?c:Array.isArray(c)?c.join(""):""}u!==document.title&&(document.title=u),["meta","base","link","style","script"].forEach((function(e){!function(e,t){var r=document.getElementsByTagName("head")[0],a=r.querySelector("meta[name=next-head-count]");0;for(var i=Number(a.content),u=[],c=0,s=a.previousElementSibling;c0&&void 0!==l[0]?l[0]:{},r=D,e.prev=3,e.next=6,J.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,re=a,u=i&&i.reportWebVitals,ne=function(e){var t,r=e.id,n=e.name,o=e.startTime,a=e.value,i=e.duration,c=e.entryType,s=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);s&&s.length&&(t=s[0].startTime);var f={id:r||l,name:n,startTime:o||t,value:null==a?i:a,label:"mark"===c||"measure"===c?"custom":"web-vital"};null===u||void 0===u||u(f),k.trackWebVitalMetric(f)},e.next=17;break;case 17:return e.next=19,J.routeLoader.whenEntrypoint(q);case 19:e.t0=e.sent;case 20:if(!("error"in(c=e.t0))){e.next=23;break}throw c.error;case 23:ie=c.component,e.next=28;break;case 28:e.next=33;break;case 30:e.prev=30,e.t1=e.catch(3),r=R.getProperError(e.t1);case 33:if(!window.__NEXT_PRELOADREADY){e.next=37;break}return e.next=37,window.__NEXT_PRELOADREADY(B);case 37:return t.router=te=O.createRouter(q,F,Q,{initialProps:I,pageLoader:J,App:re,Component:ie,wrapApp:we,err:r,isFallback:Boolean(z),subscription:function(e,t,r){return fe(Object.assign({},e,{App:t,scroll:r}))},locale:G,locales:V,defaultLocale:Y,domainLocales:$,isPreview:X}),fe(s={App:re,initial:!0,Component:ie,props:I,err:r}),e.abrupt("return",ce);case 44:return e.abrupt("return",{emitter:ce,renderCtx:s});case 45:case"end":return e.stop()}}),e,null,[[3,30]])})))).apply(this,arguments)}function le(){return(le=j(n.mark((function e(t){var r;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,pe(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,xe(t);case 7:e.next=17;break;case 9:if(e.prev=9,e.t0=e.catch(4),!(r=R.getProperError(e.t0)).cancelled){e.next=14;break}throw r;case 14:return e.next=17,pe(T({},t,{err:r}));case 17:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function fe(e){return le.apply(this,arguments)}function pe(e){var t=e.App,n=e.err;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),J.loadPage("/_error").then((function(e){var t=e.page,n=e.styleSheets;return(null===be||void 0===be?void 0:be.Component)===t?r.e(374).then(r.bind(r,25374)).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:t,styleSheets:n}})).then((function(r){var o=r.ErrorComponent,a=r.styleSheets,i=we(t),u={Component:o,AppTree:i,router:te,ctx:{err:n,pathname:q,query:F,asPath:Q,AppTree:i}};return Promise.resolve(e.props?e.props:b.loadGetInitialProps(t,u)).then((function(t){return xe(T({},e,{err:n,Component:o,styleSheets:a,props:t}))}))}))}t.emitter=ce;var he=null,de=!0;function ve(){b.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),ne&&performance.getEntriesByName("Next.js-hydration").forEach(ne),ye())}function me(){if(b.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"),ne&&(performance.getEntriesByName("Next.js-render").forEach(ne),performance.getEntriesByName("Next.js-route-change-to-render").forEach(ne)),ye(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function ye(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function ge(e){var t=e.children;return f.default.createElement(ue,{fn:function(e){return pe({App:re,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},f.default.createElement(v.RouterContext.Provider,{value:O.makePublicRouterInstance(te)},f.default.createElement(h.HeadManagerContext.Provider,{value:oe},t)))}function _e(e,t){return f.default.createElement(e,Object.assign({},t))}var be,we=function(e){return function(t){var r=T({},t,{Component:ie,err:D,router:te});return f.default.createElement(ge,null,_e(e,r))}};function xe(e){var t=e.App,r=e.Component,n=e.props,o=e.err,a=e.__N_RSC,i="initial"in e?void 0:e.styleSheets;r=r||be.Component;var u=T({},n=n||be.props,{Component:!!a?undefined:r,err:o,router:te});be=u;var c,s=!1,l=new Promise((function(e,t){ee&&ee(),c=function(){ee=null,e()},ee=function(){s=!0,ee=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function h(){c()}!function(){if(!i)return!1;var e=N(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?void 0:r.getAttribute("data-n-css");i.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 d=f.default.createElement(f.default.Fragment,null,f.default.createElement(Ee,{callback:function(){if(i&&!s){for(var t=new Set(i.map((function(e){return e.href}))),r=N(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,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=new Map,p=new Set,h=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],d=function(e){var t=e.src,r=e.id,o=e.onLoad,a=void 0===o?function(){}:o,u=e.dangerouslySetInnerHTML,c=e.children,s=void 0===c?"":c,l=e.strategy,d=void 0===l?"afterInteractive":l,v=e.onError,m=r||t;if(!m||!p.has(m)){if(f.has(t))return p.add(m),void f.get(t).then(a,v);var y=document.createElement("script"),g=new Promise((function(e,t){y.addEventListener("load",(function(t){e(),a&&a.call(this,t)})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){v&&v(e)}));t&&f.set(t,g),p.add(m),u?y.innerHTML=u.__html||"":s?y.textContent="string"===typeof s?s:Array.isArray(s)?s.join(""):"":t&&(y.src=t);for(var _=0,b=Object.entries(e);_>>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 j(e){return""===(e=L(e))||e.startsWith("/")}function M(e){return function(e,t){if(!e.startsWith("/")||!t)return e;var r=L(e);return f.normalizePathTrailingSlash("".concat(t).concat(r))+e.substr(r.length)}(e,"")}function C(e){return(e=e.slice("".length)).startsWith("/")||(e="/".concat(e)),e}function T(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{var t=y.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&j(r.pathname)}catch(n){return!1}}function A(e,t,r){var n="",o=P.getRouteRegex(e),a=o.groups,i=(t!==e?x.getRouteMatcher(o)(t):"")||r;n=e;var u=Object.keys(a);return u.every((function(e){var t=i[e]||"",r=a[e],o=r.repeat,u=r.optional,c="[".concat(o?"...":"").concat(e,"]");return u&&(c="".concat(t?"":"/","[").concat(c,"]")),o&&!Array.isArray(t)&&(t=[t]),(u||e in i)&&(n=n.replace(c,o?t.map((function(e){return encodeURIComponent(e)})).join("/"):encodeURIComponent(t))||"/")}))||(n=""),{params:u,result:n}}function N(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,o="string"===typeof t?t:y.formatWithValidation(t),a=o.match(/^[a-zA-Z]{1,}:\/\//),i=a?o.substr(a[0].length):o;if((i.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(o,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));var u=y.normalizeRepeatedSlashes(i);o=(a?a[0]:"")+u}if(!T(o))return r?[o]:o;try{n=new URL(o.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(m){n=new URL("/","http://n")}try{var c=new URL(o,n);c.pathname=f.normalizePathTrailingSlash(c.pathname);var s="";if(g.isDynamicRoute(c.pathname)&&c.searchParams&&r){var l=b.searchParamsToUrlQuery(c.searchParams),p=A(c.pathname,c.pathname,l),h=p.result,d=p.params;h&&(s=y.formatWithValidation({pathname:h,hash:c.hash,query:N(l,d)}))}var v=c.origin===n.origin?c.href.slice(c.origin.length):c.href;return r?[v,s||v]:v}catch(_){return r?[o]:o}}function D(e){var t=y.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function q(e,t,r){var n=I(e,t,!0),o=c(n,2),a=o[0],i=o[1],u=y.getLocationOrigin(),s=a.startsWith(u),l=i&&i.startsWith(u);a=D(a),i=i?D(i):i;var f=s?a:M(a),p=r?D(I(e,r)):i||a;return{url:f,as:l?p:M(p)}}function F(e,t){var r=f.removePathTrailingSlash(d.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some((function(t){if(g.isDynamicRoute(t)&&P.getRouteRegex(t).re.test(r))return e=t,!0})),f.removePathTrailingSlash(e))}var W=Symbol("SSG_DATA_NOT_FOUND");function U(e,t,r){return fetch(e,{credentials:"same-origin"}).then((function(n){if(!n.ok){if(t>1&&n.status>=500)return U(e,t-1,r);if(404===n.status)return n.json().then((function(e){if(e.notFound)return{notFound:W};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.text?n.text():n.json()}))}function H(e,t,r,n,o){var a=new URL(e,window.location.href).href;return void 0!==n[a]?n[a]:n[a]=U(e,t?3:1,{text:r}).catch((function(e){throw t||p.markAssetError(e),e})).then((function(e){return o||delete n[a],e})).catch((function(e){throw delete n[a],e}))}var B=function(){function e(t,r,n,o){var a,u=this,c=o.initialProps,s=o.pageLoader,l=o.App,p=o.wrapApp,h=o.Component,d=o.err,v=o.subscription,m=o.isFallback,b=o.locale,w=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview);(i(this,e),this.sdc={},this.sdr={},this.sde={},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;u._idx=a;var i=_.parseRelativeUrl(r).pathname;u.isSsr&&n===M(u.asPath)&&i===M(u.pathname)||u._bps&&!u._bps(t)||u.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&u._shallow,locale:o.locale||u.defaultLocale}),undefined)}}else{var c=u.pathname,s=u.query;u.changeState("replaceState",y.formatWithValidation({pathname:M(c),query:s}),y.getURL())}},this.route=f.removePathTrailingSlash(t),this.components={},"/_error"!==t)&&(this.components[this.route]={Component:h,initial:!0,props:c,err:d,__N_SSG:c&&c.__N_SSG,__N_SSP:c&&c.__N_SSP,__N_RSC:!!(null===(a=h)||void 0===a?void 0:a.__next_rsc__)});this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=s,this.pathname=t,this.query=r;var x=g.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.asPath=x?t:n,this.basePath="",this.sub=v,this.clc=null,this._wrapApp=p,this.isSsr=!0,this.isFallback=m,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.isPreview=!!w,this.isLocaleDomain=!1,"//"!==n.substr(0,2)){var P={locale:b};P._shouldResolveHref=n!==t,this.changeState("replaceState",y.formatWithValidation({pathname:M(t),query:r}),y.getURL(),P)}window.addEventListener("popstate",this.onPopState)}return u(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=q(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=q(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=a(n.mark((function t(r,o,a,i,u){var s,d,v,m,b,w,E,S,O,I,D,U,H,B,z,G,V,$,X,Y,K,Q,J,Z,ee,te,re,ne,oe,ae,ie,ue,ce,se,le,fe,pe,he,de,ve;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(T(o)){t.next=3;break}return window.location.href=o,t.abrupt("return",!1);case 3:s=i._h||i._shouldResolveHref||L(o)===L(a),i._h&&(this.isReady=!0),d=this.locale,t.next=18;break;case 18:if(i._h||(this.isSsr=!1),y.ST&&performance.mark("routeChange"),m=i.shallow,b={shallow:void 0!==m&&m},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,b),a=M(R(j(a)?C(a):a,i.locale,this.defaultLocale)),w=k(j(a)?C(a):a,this.locale),this._inFlightRoute=a,E=d!==this.locale,i._h||!this.onlyAHashChange(w)||E){t.next=35;break}return this.asPath=w,e.events.emit("hashChangeStart",a,b),this.changeState(r,o,a,i),this.scrollToHash(w),this.notify(this.components[this.route],null),e.events.emit("hashChangeComplete",a,b),t.abrupt("return",!0);case 35:return S=_.parseRelativeUrl(o),O=S.pathname,I=S.query,t.prev=37,t.next=40,Promise.all([this.pageLoader.getPageList(),p.getClientBuildManifest(),this.pageLoader.getMiddlewareList()]);case 40:U=t.sent,H=c(U,2),D=H[0],H[1].__rewrites,t.next=50;break;case 46:return t.prev=46,t.t0=t.catch(37),window.location.href=a,t.abrupt("return",!1);case 50:if(this.urlIsNew(w)||E||(r="replaceState"),B=a,O=O?f.removePathTrailingSlash(C(O)):O,s&&"/_error"!==O&&(i._shouldResolveHref=!0,S.pathname=F(O,D),S.pathname!==O&&(O=S.pathname,S.pathname=M(O),o=y.formatWithValidation(S))),T(a)){t.next=59;break}t.next=57;break;case 57:return window.location.href=a,t.abrupt("return",!1);case 59:if(B=k(C(B),this.locale),1===i._h&&!g.isDynamicRoute(f.removePathTrailingSlash(O))){t.next=84;break}return t.next=63,this._preflightRequest({as:a,cache:!0,pages:D,pathname:O,query:I});case 63:if("rewrite"!==(z=t.sent).type){t.next=72;break}I=l(l({},I),z.parsedAs.query),B=z.asPath,O=z.resolvedHref,S.pathname=z.resolvedHref,o=y.formatWithValidation(S),t.next=84;break;case 72:if("redirect"!==z.type||!z.newAs){t.next=76;break}return t.abrupt("return",this.change(r,z.newUrl,z.newAs,i));case 76:if("redirect"!==z.type||!z.destination){t.next=81;break}return window.location.href=z.destination,t.abrupt("return",new Promise((function(){})));case 81:if("refresh"!==z.type||a===window.location.pathname){t.next=84;break}return window.location.href=a,t.abrupt("return",new Promise((function(){})));case 84:if(G=f.removePathTrailingSlash(O),!g.isDynamicRoute(G)){t.next=100;break}if(V=_.parseRelativeUrl(B),$=V.pathname,X=P.getRouteRegex(G),Y=x.getRouteMatcher(X)($),Q=(K=G===$)?A(G,$,I):{},Y&&(!K||Q.result)){t.next=99;break}if(!((J=Object.keys(X.groups).filter((function(e){return!I[e]}))).length>0)){t.next=97;break}throw new Error((K?"The provided `href` (".concat(o,") value is missing query values (").concat(J.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat($,") is incompatible with the `href` value (").concat(G,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(K?"href-interpolation-failed":"incompatible-href-as"));case 97:t.next=100;break;case 99:K?a=y.formatWithValidation(Object.assign({},V,{pathname:Q.result,query:N(I,Q.params)})):Object.assign(I,Y);case 100:return e.events.emit("routeChangeStart",a,b),t.prev=101,t.next=104,this.getRouteInfo(G,O,I,a,B,b);case 104:if(ee=t.sent,re=(te=ee).error,ne=te.props,oe=te.__N_SSG,ae=te.__N_SSP,!oe&&!ae||!ne){t.next=130;break}if(!ne.pageProps||!ne.pageProps.__N_REDIRECT){t.next=116;break}if(!(ie=ne.pageProps.__N_REDIRECT).startsWith("/")||!1===ne.pageProps.__N_REDIRECT_BASE_PATH){t.next=114;break}return(ue=_.parseRelativeUrl(ie)).pathname=F(ue.pathname,D),ce=q(this,ie,ie),se=ce.url,le=ce.as,t.abrupt("return",this.change(r,se,le,i));case 114:return window.location.href=ie,t.abrupt("return",new Promise((function(){})));case 116:if(this.isPreview=!!ne.__N_PREVIEW,ne.notFound!==W){t.next=130;break}return t.prev=118,t.next=121,this.fetchComponent("/404");case 121:fe="/404",t.next=127;break;case 124:t.prev=124,t.t1=t.catch(118),fe="/_error";case 127:return t.next=129,this.getRouteInfo(fe,fe,I,a,B,{shallow:!1});case 129:ee=t.sent;case 130:return e.events.emit("beforeHistoryChange",a,b),this.changeState(r,o,a,i),i._h&&"/_error"===O&&500===(null===(v=self.__NEXT_DATA__.props)||void 0===v||null===(Z=v.pageProps)||void 0===Z?void 0:Z.statusCode)&&(null===ne||void 0===ne?void 0:ne.pageProps)&&(ne.pageProps.statusCode=500),pe=i.shallow&&this.route===G,de=null!==(he=i.scroll)&&void 0!==he?he:!pe,ve=de?{x:0,y:0}:null,t.next=138,this.set(G,O,I,w,ee,null!==u&&void 0!==u?u:ve).catch((function(e){if(!e.cancelled)throw e;re=re||e}));case 138:if(!re){t.next=141;break}throw e.events.emit("routeChangeError",re,w,b),re;case 141:return e.events.emit("routeChangeComplete",a,b),t.abrupt("return",!0);case 146:if(t.prev=146,t.t2=t.catch(101),!h.default(t.t2)||!t.t2.cancelled){t.next=150;break}return t.abrupt("return",!1);case 150:throw t.t2;case 151:case"end":return t.stop()}}),t,this,[[37,46],[101,146],[118,124]])})));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&&y.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=a(n.mark((function t(r,o,a,i,u,c){var s,l,f,d;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(!p.isAssetError(r)&&!c){t.next=6;break}throw e.events.emit("routeChangeError",r,i,u),window.location.href=i,O();case 6:if(t.prev=6,"undefined"!==typeof s&&"undefined"!==typeof l){t.next=13;break}return t.next=10,this.fetchComponent("/_error");case 10:f=t.sent,s=f.page,l=f.styleSheets;case 13:if((d={props:undefined,Component:s,styleSheets:l,err:r,error:r}).props){t.next=25;break}return t.prev=15,t.next=18,this.getInitialProps(s,{err:r,pathname:o,query:a});case 18:d.props=t.sent,t.next=25;break;case 21:t.prev=21,t.t0=t.catch(15),console.error("Error in error page `getInitialProps`: ",t.t0),d.props={};case 25:return t.abrupt("return",d);case 28:return t.prev=28,t.t1=t.catch(6),t.abrupt("return",this.handleRouteInfoError(h.default(t.t1)?t.t1:new Error(t.t1+""),o,a,i,u,!0));case 31:case"end":return t.stop()}}),t,this,[[6,28],[15,21]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=a(n.mark((function e(t,r,o,a,i,u){var c,s,l,f,p,d,v,m,g,_,b,w,x=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c=this.components[t],!u.shallow||!c||this.route!==t){e.next=4;break}return e.abrupt("return",c);case 4:if(s=void 0,c&&!("initial"in c)&&(s=c),e.t0=s,e.t0){e.next=11;break}return e.next=10,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,__N_RSC:!!e.page.__next_rsc__}}));case 10:e.t0=e.sent;case 11:l=e.t0,f=l.Component,p=l.__N_SSG,d=l.__N_SSP,v=l.__N_RSC,e.next=17;break;case 17:return(p||d||v)&&(m=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:r,query:o}),asPath:i,ssg:p,rsc:v,locale:this.locale})),e.next=20,this._getData((function(){return p||d?H(m,x.isSsr,!1,p?x.sdc:x.sdr,!!p&&!x.isPreview):x.getInitialProps(f,{pathname:r,query:o,asPath:a,locale:x.locale,locales:x.locales,defaultLocale:x.defaultLocale})}));case 20:if(g=e.sent,!v){e.next=28;break}return e.next=24,this._getData((function(){return x._getFlightData(m)}));case 24:_=e.sent,b=_.fresh,w=_.data,g.pageProps=Object.assign(g.pageProps,{__flight_serialized__:w,__flight_fresh__:b});case 28:return l.props=g,this.components[t]=l,e.abrupt("return",l);case 33:return e.prev=33,e.t1=e.catch(0),e.abrupt("return",this.handleRouteInfoError(h.getProperError(e.t1),r,o,a,u));case 36:case"end":return e.stop()}}),e,this,[[0,33]])})));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],n=void 0===r?"":r;if(""!==n&&"top"!==n){var o=document.getElementById(n);if(o)o.scrollIntoView();else{var a=document.getElementsByName(n)[0];a&&a.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u,c,s,p,h,d,v,m,g=this,b=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>1&&void 0!==b[1]?b[1]:t,o=b.length>2&&void 0!==b[2]?b[2]:{},a=_.parseRelativeUrl(t),i=a.pathname,u=a.query,e.next=7,this.pageLoader.getPageList();case 7:c=e.sent,s=r,e.next=19;break;case 12:h=e.sent,p=h.__rewrites,d=w.default(M(R(r,this.locale)),c,p,a.query,(function(e){return F(e,c)}),this.locales),s=k(C(d.asPath),this.locale),d.matchedPage&&d.resolvedHref&&(i=d.resolvedHref,a.pathname=i,t=y.formatWithValidation(a)),e.next=21;break;case 19:a.pathname=F(a.pathname,c),a.pathname!==i&&(i=a.pathname,a.pathname=i,t=y.formatWithValidation(a));case 21:e.next=23;break;case 23:return e.next=25,this._preflightRequest({as:M(r),cache:!0,pages:c,pathname:i,query:u});case 25:return"rewrite"===(v=e.sent).type&&(a.pathname=v.resolvedHref,i=v.resolvedHref,u=l(l({},u),v.parsedAs.query),s=v.asPath,t=y.formatWithValidation(a)),m=f.removePathTrailingSlash(i),e.next=30,Promise.all([this.pageLoader._isSsg(m).then((function(e){return!!e&&H(g.pageLoader.getDataHref({href:t,asPath:s,ssg:!0,locale:"undefined"!==typeof o.locale?o.locale:g.locale}),!1,!1,g.sdc,!0)})),this.pageLoader[o.priority?"loadPage":"prefetch"](m)]);case 30:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u=this;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,o=this.clc=function(){r=!0},a=function(){if(r){var e=new Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}o===u.clc&&(u.clc=null)},e.prev=3,e.next=6,this.pageLoader.loadPage(t);case 6:return i=e.sent,a(),e.abrupt("return",i);case 11:throw e.prev=11,e.t0=e.catch(3),a(),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])})));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:"_getFlightData",value:function(e){return H(e,!0,!0,this.sdc,!1).then((function(e){return{fresh:!0,data:e}}))}},{key:"_preflightRequest",value:function(){var e=a(n.mark((function e(t){var r,o,a,i,u,s,l,p,h,d,m,y;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=k(j(t.as)?C(t.as):t.as,this.locale),e.next=3,this.pageLoader.getMiddlewareList();case 3:if(a=e.sent,a.some((function(e){var t=c(e,2),r=t[0],n=t[1];return x.getRouteMatcher(E.getMiddlewareRegex(r,!n))(o)}))){e.next=7;break}return e.abrupt("return",{type:"next"});case 7:return e.next=9,this._getPreflightData({preflightHref:t.as,shouldCache:t.cache});case 9:if(i=e.sent,!(null===(r=i.rewrite)||void 0===r?void 0:r.startsWith("/"))){e.next=15;break}return u=_.parseRelativeUrl(v.normalizeLocalePath(j(i.rewrite)?C(i.rewrite):i.rewrite,this.locales).pathname),s=f.removePathTrailingSlash(u.pathname),t.pages.includes(s)?(l=!0,p=s):(p=F(s,t.pages))!==u.pathname&&t.pages.includes(p)&&(l=!0),e.abrupt("return",{type:"rewrite",asPath:u.pathname,parsedAs:u,matchedPage:l,resolvedHref:p});case 15:if(!i.redirect){e.next=21;break}if(!i.redirect.startsWith("/")){e.next=20;break}return h=f.removePathTrailingSlash(v.normalizeLocalePath(j(i.redirect)?C(i.redirect):i.redirect,this.locales).pathname),d=q(this,h,h),m=d.url,y=d.as,e.abrupt("return",{type:"redirect",newUrl:m,newAs:y});case 20:return e.abrupt("return",{type:"redirect",destination:i.redirect});case 21:if(!i.refresh||i.ssr){e.next=23;break}return e.abrupt("return",{type:"refresh"});case 23:return e.abrupt("return",{type:"next"});case 24:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getPreflightData",value:function(e){var t=this,r=e.preflightHref,n=e.shouldCache,o=void 0!==n&&n,a=new URL(r,window.location.href).href;return!this.isPreview&&o&&this.sde[a]?Promise.resolve(this.sde[a]):fetch(r,{method:"HEAD",credentials:"same-origin",headers:{"x-middleware-preflight":"1"}}).then((function(e){if(!e.ok)throw new Error("Failed to preflight request");return{cache:e.headers.get("x-middleware-cache"),redirect:e.headers.get("Location"),refresh:e.headers.has("x-middleware-refresh"),rewrite:e.headers.get("x-middleware-rewrite"),ssr:!!e.headers.get("x-middleware-ssr")}})).then((function(e){return o&&"no-cache"!==e.cache&&(t.sde[a]=e),e})).catch((function(e){throw delete t.sde[a],e}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,y.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t,r){this.clc&&(e.events.emit("routeChangeError",O(),t,r),this.clc(),this.clc=null)}},{key:"notify",value:function(e,t){return this.sub(e,this.components["/_app"].Component,t)}}]),e}();B.events=m.default(),t.default=B},81247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",c=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));c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=e.search||c&&"?".concat(c)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s="");u&&"#"!==u[0]&&(u="#"+u);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(s).concat(i).concat(l).concat(u)};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(21603));var o=/https?|ftp|gopher|file/},27199:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!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}},67181:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMiddlewareRegex=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.getParametrizedRoute(e),o=t?"(?!_next).*":"",a=t?"(?:(/.*)?)":"";if("routeKeys"in r)return"/"===r.parameterizedRoute?{groups:{},namedRegex:"^/".concat(o,"$"),re:new RegExp("^/".concat(o,"$")),routeKeys:{}}:{groups:r.groups,namedRegex:"^".concat(r.namedParameterizedRoute).concat(a,"$"),re:new RegExp("^".concat(r.parameterizedRoute).concat(a,"$")),routeKeys:r.routeKeys};if("/"===r.parameterizedRoute)return{groups:{},re:new RegExp("^/".concat(o,"$"))};return{groups:{},re:new RegExp("^".concat(r.parameterizedRoute).concat(a,"$"))}};var n=r(12436)},60262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getMiddlewareRegex",{enumerable:!0,get:function(){return n.getMiddlewareRegex}}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o.getRouteMatcher}}),Object.defineProperty(t,"getRouteRegex",{enumerable:!0,get:function(){return a.getRouteRegex}}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return i.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return u.isDynamicRoute}});var n=r(67181),o=r(2354),a=r(12436),i=r(10310),u=r(82201)},82201:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},3202:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),a=t?new URL(t,r):r,i=new URL(e,a),u=i.pathname,c=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:u,query:o.searchParamsToUrlQuery(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(70297),o=r(21603)},21603:function(e,t,r){"use strict";var n=r(44429);function o(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!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;n0&&void 0!==arguments[0]?arguments[0]:"/",r=n(this.children.keys()).sort();null!==this.slugName&&r.splice(r.indexOf("[]"),1),null!==this.restSlugName&&r.splice(r.indexOf("[...]"),1),null!==this.optionalRestSlugName&&r.splice(r.indexOf("[[...]]"),1);var o=r.map((function(r){return e.children.get(r)._smoosh("".concat(t).concat(r,"/"))})).reduce((function(e,t){return[].concat(n(e),n(t))}),[]);if(null!==this.slugName&&o.push.apply(o,n(this.children.get("[]")._smoosh("".concat(t,"[").concat(this.slugName,"]/")))),!this.placeholder){var a="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(a,'" and "').concat(a,"[[...").concat(this.optionalRestSlugName,']]").'));o.unshift(a)}return null!==this.restSlugName&&o.push.apply(o,n(this.children.get("[...]")._smoosh("".concat(t,"[...").concat(this.restSlugName,"]/")))),null!==this.optionalRestSlugName&&o.push.apply(o,n(this.children.get("[[...]]")._smoosh("".concat(t,"[[...").concat(this.optionalRestSlugName,"]]/")))),o}},{key:"_insert",value:function(t,r,n){if(0!==t.length){if(n)throw new Error("Catch-all must be the last part of the URL.");var o=t[0];if(o.startsWith("[")&&o.endsWith("]")){var a=function(e,t){if(null!==e&&e!==t)throw new Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(t,"')."));r.forEach((function(e){if(e===t)throw new Error('You cannot have the same slug name "'.concat(t,'" repeat within a single dynamic path'));if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error('You cannot have the slug names "'.concat(e,'" and "').concat(t,'" differ only by non-word symbols within a single dynamic path'))})),r.push(t)},i=o.slice(1,-1),u=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),u=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('".concat(i,"')."));if(i.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('".concat(i,"')."));if(n)if(u){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(t[0],'" ).'));a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(t[0],'").'));a(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'.concat(t[0],'").'));a(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new e),this.children.get(o)._insert(t.slice(1),r,n)}else this.placeholder=!1}}]),e}()},81980:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=function(){return r}},70297:function(e,t,r){"use strict";var n=r(28526),o=r(22624),a=r(80065),i=r(75034),u=r(22073),c=r(8126),s=r(75424);function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return i(this,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){var t,r=!1;return function(){return r||(r=!0,t=e.apply(void 0,arguments)),t}},t.getLocationOrigin=h,t.getURL=function(){var e=window.location.href,t=h();return e.substring(t.length)},t.getDisplayName=d,t.isResSent=v,t.normalizeRepeatedSlashes=function(e){var t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?".concat(t.slice(1).join("?")):"")},t.loadGetInitialProps=m,t.formatWithValidation=function(e){0;return p.formatUrl(e)},t.HtmlContext=t.ST=t.SP=t.urlObjectKeys=void 0;var f=r(2784),p=r(81247);function h(){var e=window.location,t=e.protocol,r=e.hostname,n=e.port;return"".concat(t,"//").concat(r).concat(n?":"+n:"")}function d(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function v(e){return e.finished||e.headersSent}function m(e,t){return y.apply(this,arguments)}function y(){return(y=s(n.mark((function e(t,r){var o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=4;break;case 4:if(o=r.res||r.ctx&&r.ctx.res,t.getInitialProps){e.next=12;break}if(!r.ctx||!r.Component){e.next=11;break}return e.next=9,m(r.Component,r.ctx);case 9:return e.t0=e.sent,e.abrupt("return",{pageProps:e.t0});case 11:return e.abrupt("return",{});case 12:return e.next=14,t.getInitialProps(r);case 14:if(a=e.sent,!o||!v(o)){e.next=17;break}return e.abrupt("return",a);case 17:if(a){e.next=20;break}throw i='"'.concat(d(t),'.getInitialProps()" should resolve to an object. But found "').concat(a,'" instead.'),new Error(i);case 20:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var g="undefined"!==typeof performance;t.SP=g;var _=g&&"function"===typeof performance.mark&&"function"===typeof performance.measure;t.ST=_;var b=function(e){a(r,e);var t=l(r);function r(){return o(this,r),t.apply(this,arguments)}return r}(c(Error));t.DecodeError=b;var w=f.createContext(null);t.HtmlContext=w},11541: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}))}))})},35552:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&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),O(r),d}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=t}catch(r){Function("r","regeneratorRuntime = r")(t)}},29600:function(e){!function(){var t={106:function(e,t){!function(e){"use strict";var t,r,n,o,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},i=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return r.observe({type:e,buffered:!0}),r}}catch(e){}},u=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},c=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},s=function(e,t,r){var n;return function(o){t.value>=0&&(o||r)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},l=-1,f=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){u((function(e){var t=e.timeStamp;l=t}),!0)},h=function(){return l<0&&(l=f(),p(),c((function(){setTimeout((function(){l=f(),p()}),0)}))),{get firstHiddenTime(){return l}}},d=function(e,t){var r,n=h(),o=a("FCP"),u=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){_(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,y),removeEventListener("pointercancel",n,y)};addEventListener("pointerup",r,y),addEventListener("pointercancel",n,y)}(t,e):_(t,e)}},x=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,y)}))},P=new Set;e.getCLS=function(e,t){v||(d((function(e){m=e.value})),v=!0);var r,n=function(t){m>-1&&e(t)},o=a("CLS",0),l=0,f=[],p=function(e){if(!e.hadRecentInput){var t=f[0],n=f[f.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,f.push(e)):(l=e.value,f=[e]),l>o.value&&(o.value=l,o.entries=f,r())}},h=i("layout-shift",p);h&&(r=s(n,o,t),u((function(){h.takeRecords().map(p),r(!0)})),c((function(){l=0,m=-1,o=a("CLS",0),r=s(n,o,t)})))},e.getFCP=d,e.getFID=function(e,n){var l,f=h(),p=a("FID"),d=function(e){e.startTime