PageSourceSearch

https://hog.crowdin.com/static/web-vitals.js?v=

js crowdin.com collected 2026-10-01 07:00:47 UTC 5,788 bytes, 2 lines download raw bytes

1!function(){"use strict";var n,e=-1,t=function(n){addEventListener("pageshow",(function(t){t.persisted&&(e=t.timeStamp,n(t))}),!0)},i=function(){var n=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(n&&n.responseStart>0&&n.responseStart<performance.now())return n},r=function(){var n=i();return n&&n.activationStart||0},o=function(n,t){var o=i(),a="navigate";return e>=0?a="back-forward-cache":o&&(document.prerendering||r()>0?a="prerender":document.wasDiscarded?a="restore":o.type&&(a=o.type.replace(/_/g,"-"))),{name:n,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:a}},a=function(n,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var i=new PerformanceObserver((function(n){Promise.resolve().then((function(){e(n.getEntries())}))}));return i.observe(Object.assign({type:n,buffered:!0},t||{})),i}}catch(n){}},u=function(n,e,t,i){var r,o;return function(a){e.value>=0&&(a||i)&&((o=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=o,e.rating=function(n,e){return n>e[1]?"poor":n>e[0]?"needs-improvement":"good"}(e.value,t),n(e))}},c=function(n){requestAnimationFrame((function(){return requestAnimationFrame((function(){return n()}))}))},f=function(n){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&n()}))},s=function(n){var e=!1;return function(){e||(n(),e=!0)}},l=-1,d=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},v=function(n){"hidden"===document.visibilityState&&l>-1&&(l="visibilitychange"===n.type?n.timeStamp:0,m())},p=function(){addEventListener("visibilitychange",v,!0),addEventListener("prerenderingchange",v,!0)},m=function(){removeEventListener("visibilitychange",v,!0),removeEventListener("prerenderingchange",v,!0)},h=function(){return l<0&&(l=d(),p(),t((function(){setTimeout((function(){l=d(),p()}),0)}))),{get firstHiddenTime(){return l}}},g=function(n){document.prerendering?addEventListener("prerenderingchange",(function(){return n()}),!0):n()},y=[1800,3e3],T=function(n,e){e=e||{},g((function(){var i,f=h(),s=o("FCP"),l=a("paint",(function(n){n.forEach((function(n){"first-contentful-paint"===n.name&&(l.disconnect(),n.startTime<f.firstHiddenTime&&(s.value=Math.max(n.startTime-r(),0),s.entries.push(n),i(!0)))}))}));l&&(i=u(n,s,y,e.reportAllChanges),t((function(t){s=o("FCP"),i=u(n,s,y,e.reportAllChanges),c((function(){s.value=performance.now()-t.timeStamp,i(!0)}))})))}))},C=[.1,.25],b=0,E=1/0,L=0,w=function(n){n.forEach((function(n){n.interactionId&&(E=Math.min(E,n.interactionId),L=Math.max(L,n.interactionId),b=L?(L-E)/7+1:0)}))},P=function(){"interactionCount"in performance||n||(n=a("event",w,{type:"event",buffered:!0,durationThreshold:0}))},S=[],A=new Map,I=0,M=function(){return(n?b:performance.interactionCount||0)-I},k=[],H=function(n){if(k.forEach((function(e){return e(n)})),n.interactionId||"first-input"===n.entryType){var e=S[S.length-1],t=A.get(n.interactionId);if(t||S.length<10||n.duration>e.latency){if(t)n.duration>t.latency?(t.entries=[n],t.latency=n.duration):n.duration===t.latency&&n.startTime===t.entries[0].startTime&&t.entries.push(n);else{var i={id:n.interactionId,latency:n.duration,entries:[n]};A.set(i.id,i),S.push(i)}S.sort((function(n,e){return e.latency-n.latency})),S.length>10&&S.splice(10).forEach((function(n){return A.delete(n.id)}))}}},R=function(n){var e=self.requestIdleCallback||self.setTimeout,t=-1;return n=s(n),"hidden"===document.visibilityState?n():(t=e(n),f(n)),t},q=[200,500],F=[2500,4e3],x={},N="undefined"!=typeof window?window:void 0,O="undefined"!=typeof globalThis?globalThis:N,X=null==O?void 0:O.navigator;null==O||O.document,null==O||O.location,null==O||O.fetch,null!=O&&O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&O.XMLHttpRequest,null==O||O.AbortController,null==X||X.userAgent;var B={onLCP:function(n,e){e=e||{},g((function(){var i,l=h(),d=o("LCP"),v=function(n){e.reportAllChanges||(n=n.slice(-1)),n.forEach((function(n){n.startTime<l.firstHiddenTime&&(d.value=Math.max(n.startTime-r(),0),d.entries=[n],i())}))},p=a("largest-contentful-paint",v);if(p){i=u(n,d,F,e.reportAllChanges);var m=s((function(){x[d.id]||(v(p.takeRecords()),p.disconnect(),x[d.id]=!0,i(!0))}));["keydown","click"].forEach((function(n){addEventListener(n,(function(){return R(m)}),!0)})),f(m),t((function(t){d=o("LCP"),i=u(n,d,F,e.reportAllChanges),c((function(){d.value=performance.now()-t.timeStamp,x[d.id]=!0,i(!0)}))}))}}))},onCLS:function(n,e){e=e||{},T(s((function(){var i,r=o("CLS",0),s=0,l=[],d=function(n){n.forEac
1h((function(n){if(!n.hadRecentInput){var e=l[0],t=l[l.length-1];s&&n.startTime-t.startTime<1e3&&n.startTime-e.startTime<5e3?(s+=n.value,l.push(n)):(s=n.value,l=[n])}})),s>r.value&&(r.value=s,r.entries=l,i())},v=a("layout-shift",d);v&&(i=u(n,r,C,e.reportAllChanges),f((function(){d(v.takeRecords()),i(!0)})),t((function(){s=0,r=o("CLS",0),i=u(n,r,C,e.reportAllChanges),c((function(){return i()}))})),setTimeout(i,0))})))},onFCP:T,onINP:function(n,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},g((function(){var i;P();var r,c=o("INP"),s=function(n){R((function(){n.forEach(H);var e,t=(e=Math.min(S.length-1,Math.floor(M()/50)),S[e]);t&&t.latency!==c.value&&(c.value=t.latency,c.entries=t.entries,r())}))},l=a("event",s,{durationThreshold:null!==(i=e.durationThreshold)&&void 0!==i?i:40});r=u(n,c,q,e.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),f((function(){s(l.takeRecords()),r(!0)})),t((function(){I=0,S.length=0,A.clear(),c=o("INP"),r=u(n,c,q,e.reportAllChanges)})))})))}};(null!=N?N:{}).postHogWebVitalsCallbacks=B}();
2//# sourceMappingURL=web-vitals.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.