/*! For license information please see performance.js.LICENSE.txt */ !function(){"use strict";var t,e,n,r,o,i=-1,a=function(t){addEventListener("pageshow",(function(e){e.persisted&&(i=e.timeStamp,t(e))}),!0)},c=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart=0?r="back-forward-cache":n&&(document.prerendering||u()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},l=function(t,e,n,r){var o,i;return function(a){e.value>=0&&(a||r)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},p=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},h=function(t){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}))},d=function(t){var e=!1;return function(){e||(t(),e=!0)}},v=-1,m=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(t){"hidden"===document.visibilityState&&v>-1&&(v="visibilitychange"===t.type?t.timeStamp:0,w())},g=function(){addEventListener("visibilitychange",y,!0),addEventListener("prerenderingchange",y,!0)},w=function(){removeEventListener("visibilitychange",y,!0),removeEventListener("prerenderingchange",y,!0)},b=function(){return v<0&&(v=m(),g(),a((function(){setTimeout((function(){v=m(),g()}),0)}))),{get firstHiddenTime(){return v}}},E=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},L=[1800,3e3],T=function(t,e){e=e||{},E((function(){var n,r=b(),o=f("FCP"),i=s("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimer.value&&(r.value=o,r.entries=i,n())},u=s("layout-shift",c);u&&(n=l(t,r,S,e.reportAllChanges),h((function(){c(u.takeRecords()),n(!0)})),a((function(){o=0,r=f("CLS",0),n=l(t,r,S,e.reportAllChanges),p((function(){return n()}))})),setTimeout(n,0))})))},x=0,P=1/0,j=0,C=function(t){t.forEach((function(t){t.interactionId&&(P=Math.min(P,t.interactionId),j=Math.max(j,t.interactionId),x=j?(j-P)/7+1:0)}))},k=function(){"interactionCount"in performance||t||(t=s("event",C,{type:"event",buffered:!0,durationThreshold:0}))},A=[],I=new Map,_=0,D=function(){return(t?x:performance.interactionCount||0)-_},F=[],N=function(t){if(F.forEach((function(e){return e(t)})),t.interactionId||"first-input"===t.entryType){var e=A[A.length-1],n=I.get(t.interactionId);if(n||A.length<10||t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};I.set(r.id,r),A.push(r)}A.sort((function(t,e){return e.latency-t.latency})),A.length>10&&A.splice(10).forEach((function(t){return I.delete(t.id)}))}}},M=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=d(t),"hidden"===document.visibilityState?t():(n=e(t),h(t)),n},G=[200,500],B=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},E((function(){var n;k();var r,o=f("INP"),i=function(t){M((function(){t.forEach(N);var e,n=(e=Math.min(A.length-1,Math.floor(D()/50)),A[e]);n&&n.latency!==o.value&&(o.value=n.latency,o.entries=n.entries,r())}))},c=s("event",i,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=l(t,o,G,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),h((function(){i(c.takeRecords()),r(!0)})),a((function(){_=0,A.length=0,I.clear(),o=f("INP"),r=l(t,o,G,e.reportAllChanges)})))})))},R=[2500,4e3],H={},q=function(t,e){e=e||{},E((function(){var n,r=b(),o=f("LCP"),i=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach((function(t){t.startTime=0&&n1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){U(t,e),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,K),removeEventListener("pointercancel",r,K)};addEventListener("pointerup",n,K),addEventListener("pointercancel",r,K)}(e,t):U(e,t)}},X=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,W,K)}))},Z=[100,300],$=function(t,r){r=r||{},E((function(){var i,c=b(),u=f("FID"),p=function(t){t.startTime=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),f=r.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rt(t){for(var e=1;e