PageSourceSearch

https://apps.static-cs.williamhill.com/kronos/1.36.0/splash/page-v…ing-aggregate.65df1971e3d42a13339e.chunk.js

js williamhill.com collected 2026-09-24 08:33:20 UTC 10,999 bytes, 2 lines download raw bytes

1/*! app: wh-kronos (splash) | version: 1.36.0 | name: page_view_timing-aggregate | chunkhash: 65df1971e3d42a13339e */
2"use strict";(globalThis.webpackChunkWHKronos=globalThis.webpackChunkWHKronos||[]).push([[6,7,8],{85(t,e,n){n.d(e,{Ck:()=>ct,IN:()=>x,fK:()=>rt,rH:()=>tt,zB:()=>I});var r,i,a=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},o=function(t){if("loading"===document.readyState)return"loading";var e=a();if(e){if(t<e.domInteractive)return"loading";if(0===e.domContentLoadedEventStart||t<e.domContentLoadedEventStart)return"dom-interactive";if(0===e.domComplete||t<e.domComplete)return"dom-content-loaded"}return"complete"},c=function(t){var e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},u=function(t,e){var n="";try{for(;t&&9!==t.nodeType;){var r=t,i=r.id?"#"+r.id:c(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(e||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;t=r.parentNode}}catch(t){}return n},s=-1,f=function(){return s},d=function(t){addEventListener("pageshow",function(e){e.persisted&&(s=e.timeStamp,t(e))},!0)},l=function(){var t=a();return t&&t.activationStart||0},m=function(t,e){var n=a(),r="navigate";return f()>=0?r="back-forward-cache":n&&(document.prerendering||l()>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}},v=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){}},p=function(t,e,n,r){var i,a;return function(o){e.value>=0&&(o||r)&&((a=e.value-(i||0))||void 0===i)&&(i=e.value,e.delta=a,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},h=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},g=function(t){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&t()})},T=function(t){var e=!1;return function(){e||(t(),e=!0)}},y=-1,E=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},S=function(t){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===t.type?t.timeStamp:0,C())},b=function(){addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0)},C=function(){removeEventListener("visibilitychange",S,!0),removeEventListener("prerenderingchange",S,!0)},M=function(){return y<0&&(y=E(),b(),d(function(){setTimeout(function(){y=E(),b()},0)})),{get firstHiddenTime(){return y}}},L=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},D=[1800,3e3],k=function(t,e){e=e||{},L(function(){var n,r=M(),i=m("FCP"),a=v("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries.push(t),n(!0)))})});a&&(n=p(t,i,D,e.reportAllChanges),d(function(r){i=m("FCP"),n=p(t,i,D,e.reportAllChanges),h(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},w=[.1,.25],x=function(t,e){!function(t,e){e=e||{},k(T(function(){var n,r=m("CLS",0),i=0,a=[],o=function(t){t.forEach(function(t){if(!t.hadRecentInput){var e=a[0],n=a[a.length-1];i&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t])}}),i>r.value&&(r.value=i,r.entries=a,n())},c=v("layout-shift",o);c&&(n=p(t,r,w,e.reportAllChanges),g(function(){o(c.takeRecords()),n(!0)}),d(function(){i=0,r=m("CLS",0),n=p(t,r,w,e.reportAllChanges),h(function(){return n()})}),setTimeout(n,0))}))}(function(e){var n=function(t){var e,n={};if(t.entries.length){var r=t.entries.reduce(function(t,e){return t&&t.value>e.value?t:e});if(r&&r.sources&&r.sources.length){var i=(e=r.sources).find(function(t){return t.node&&1===t.node.nodeType})||e[0];i&&(n={largestShiftTarget:u(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:o(r.startTime)})}}return Object.assign(t,{attribution:n})}(e);t(n)},e)},I=function(t,e){k(function(e){var n=function(t){var e={timeToFirstByte:0,firstByteToFCP:t.value,loadState:o(f())};if(t.entries.length){var n=a(),r=t.entries[t.entries.length-1];if(n){var i=n.activationStart||0,c=Math.max(0,n.responseStart-i);e={timeToFirstByte:c,firstByteToFCP:t.value-c,loadState:o(t.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(t,{attribution:e})}(e);t(n)},e)},A=0,P=1/0,F=0,B=function(t){t.forEach(function(t){t.interactionId&&(P=Math.min(P,t.interactionId),F=Math.max(F,t.interactionId),A=F?(F-P)/7+1:0)})},O=function(){return r?A:performance.interactionCount||0},R=function(){"interactionCount"in performance||r||(r=v("event",B,{type:"event",buffered:!0,durationThreshold:0}))},j=[],q=new Map,H=0,N=[],W=function(t){if(N.forEach(function(e){return e(t)}),t.interactionId||"first-input"===t.entryType){var e=j[j.length-1],n=q.get(t.interactionId);if(n||j.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]};q.set(r.id,r),j.push(r)}j.sort(function(t,e){return e.latency-t.latency}),j.length>
210&&j.splice(10).forEach(function(t){return q.delete(t.id)})}}},K=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=T(t),"hidden"===document.visibilityState?t():(n=e(t),g(t)),n},z=[200,500],U=[],V=[],_=0,G=new WeakMap,J=new Map,Q=-1,X=function(t){U=U.concat(t),Y()},Y=function(){Q<0&&(Q=K(Z))},Z=function(){J.size>10&&J.forEach(function(t,e){q.has(e)||J.delete(e)});var t=j.map(function(t){return G.get(t.entries[0])}),e=V.length-50;V=V.filter(function(n,r){return r>=e||t.includes(n)});for(var n=new Set,r=0;r<V.length;r++){var i=V[r];$(i.startTime,i.processingEnd).forEach(function(t){n.add(t)})}var a=U.length-1-50;U=U.filter(function(t,e){return t.startTime>_&&e>a||n.has(t)}),Q=-1};N.push(function(t){t.interactionId&&t.target&&!J.has(t.interactionId)&&J.set(t.interactionId,t.target)},function(t){var e,n=t.startTime+t.duration;_=Math.max(_,t.processingEnd);for(var r=V.length-1;r>=0;r--){var i=V[r];if(Math.abs(n-i.renderTime)<=8){(e=i).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},V.push(e)),(t.interactionId||"first-input"===t.entryType)&&G.set(t,e),Y()});var $=function(t,e){for(var n,r=[],i=0;n=U[i];i++)if(!(n.startTime+n.duration<t)){if(n.startTime>e)break;r.push(n)}return r},tt=function(t,e){i||(i=v("long-animation-frame",X)),function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},L(function(){var n;R();var r,i=m("INP"),a=function(t){K(function(){t.forEach(W);var e=function(){var t=Math.min(j.length-1,Math.floor((O()-H)/50));return j[t]}();e&&e.latency!==i.value&&(i.value=e.latency,i.entries=e.entries,r())})},o=v("event",a,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=p(t,i,z,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),g(function(){a(o.takeRecords()),r(!0)}),d(function(){H=O(),j.length=0,q.clear(),i=m("INP"),r=p(t,i,z,e.reportAllChanges)}))}))}(function(e){var n=function(t){var e=t.entries[0],n=G.get(e),r=e.processingStart,i=n.processingEnd,a=n.entries.sort(function(t,e){return t.processingStart-e.processingStart}),c=$(e.startTime,i),s=t.entries.find(function(t){return t.target}),f=s&&s.target||J.get(e.interactionId),d=[e.startTime+e.duration,i].concat(c.map(function(t){return t.startTime+t.duration})),l=Math.max.apply(Math,d),m={interactionTarget:u(f),interactionTargetElement:f,interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:l,processedEventEntries:a,longAnimationFrameEntries:c,inputDelay:r-e.startTime,processingDuration:i-r,presentationDelay:Math.max(l-i,0),loadState:o(e.startTime)};return Object.assign(t,{attribution:m})}(e);t(n)},e)},et=[2500,4e3],nt={},rt=function(t,e){!function(t,e){e=e||{},L(function(){var n,r=M(),i=m("LCP"),a=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach(function(t){t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-l(),0),i.entries=[t],n())})},o=v("largest-contentful-paint",a);if(o){n=p(t,i,et,e.reportAllChanges);var c=T(function(){nt[i.id]||(a(o.takeRecords()),o.disconnect(),nt[i.id]=!0,n(!0))});["keydown","click"].forEach(function(t){addEventListener(t,function(){return K(c)},{once:!0,capture:!0})}),g(c),d(function(r){i=m("LCP"),n=p(t,i,et,e.reportAllChanges),h(function(){i.value=performance.now()-r.timeStamp,nt[i.id]=!0,n(!0)})})}})}(function(e){var n=function(t){var e={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){var n=a();if(n){var r=n.activationStart||0,i=t.entries[t.entries.length-1],o=i.url&&performance.getEntriesByType("resource").filter(function(t){return t.name===i.url})[0],c=Math.max(0,n.responseStart-r),s=Math.max(c,o?(o.requestStart||o.startTime)-r:0),f=Math.max(s,o?o.responseEnd-r:0),d=Math.max(f,i.startTime-r);e={element:u(i.element),timeToFirstByte:c,resourceLoadDelay:s-c,resourceLoadDuration:f-s,elementRenderDelay:d-f,navigationEntry:n,lcpEntry:i},i.url&&(e.url=i.url),o&&(e.lcpResourceEntry=o)}}return Object.assign(t,{attribution:e})}(e);t(n)},e)},it=[800,1800],at=function t(e){document.prerendering?L(function(){return t(e)}):"complete"!==document.readyState?addEventListener("load",function(){return t(e)},!0):setTimeout(e,0)},ot=function(t,e){e=e||{};var n=m("TTFB"),r=p(t,n,it,e.reportAllChanges);at(function(){var i=a();i&&(n.value=Math.max(i.responseStart-l(),0),n.entries=[i],r(!0),d(function(){n=m("TTFB",0),(r=p(t,n,it,e.reportAllChanges))(!0)}))})}
2,ct=function(t,e){ot(function(e){var n=function(t){var e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){var n=t.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),a=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),c=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:c-o,requestDuration:t.value-c,navigationEntry:n}}return Object.assign(t,{attribution:e})}(e);t(n)},e)};new Date}}]);

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.