PageSourceSearch

https://www.haileybury.com/_bundles/_dist/_js_chunks/tickertape.1fb15bbab5581588.js

js haileybury.com collected 2026-09-24 22:58:29 UTC 5,746 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknew_bundler=self.webpackChunknew_bundler||[]).push([["5762"],{996(t,i,e){e.r(i)},2614(t,i,e){e.r(i),e.d(i,{default:()=>s});class s{pxPerSec(){return window.innerWidth<=767?45:90}layout(){if(!this.wrapper)return;this.originalNodes||(this.originalNodes=Array.from(this.wrapper.children));let t=this.originalNodes;if(this.originalCount=t.length,0===this.originalCount)return;this.wrapper.replaceChildren(...t),t.map(t=>t.cloneNode(!0)).forEach(t=>this.wrapper.appendChild(t));let i=this.wrapper.children[0].getBoundingClientRect().left,e=this.wrapper.children[this.originalCount].getBoundingClientRect().left;this.setWidth=e-i>0?e-i:this.wrapper.scrollWidth/2;let s=this.el.clientWidth||window.innerWidth,h=this.setWidth>0?Math.min(40,Math.max(2,Math.ceil(s/this.setWidth)+1)):2;this.wrapper.replaceChildren(...t);for(let i=1;i<h;i+=1)t.forEach(t=>{let i=t.cloneNode(!0);i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex","-1"),this.wrapper.appendChild(i)});this.normalize(),this.apply()}normalize(){if(!(this.setWidth<=0)){for(;this.translate<=-this.setWidth;)this.translate+=this.setWidth;for(;this.translate>0;)this.translate-=this.setWidth}}apply(){this.wrapper.style.transform=`translate3d(${this.translate}px, 0, 0)`}start(){null==this.rafId&&(this.lastTs=0,this.rafId=requestAnimationFrame(this.tick))}stop(){null!=this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=null}sync(){!this.wantAuto&&null===this.glide||this.dragging||document.hidden?this.stop():this.start()}setAuto(t){this.wantAuto=t&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.sync()}tick(t){var i;0===this.lastTs&&(this.lastTs=t);let e=Math.min(t-this.lastTs,50);this.lastTs=t;let s=this.wantAuto?-this.pxPerSec():0;if(null!==this.glide&&(this.glide+=(s-this.glide)*(1-Math.exp(-e/420)),5>Math.abs(this.glide-s)&&(this.glide=null)),this.translate+=(null!=(i=this.glide)?i:s)*e/1e3,this.normalize(),this.apply(),!this.wantAuto&&null===this.glide){this.rafId=null;return}this.rafId=requestAnimationFrame(this.tick)}onMouseEnter(){this.opts.hoverDelay<=0?this.setAuto(!1):this.hoverTimer=window.setTimeout(()=>this.setAuto(!1),this.opts.hoverDelay)}onMouseLeave(){window.clearTimeout(this.hoverTimer),this.hoverTimer=null,this.setAuto(!0)}onPointerDown(t){if(window.clearTimeout(this.hoverTimer),this.hoverTimer=null,this.dragging=!0,this.pointerId=t.pointerId,this.dragStartX=t.clientX,this.dragStartTranslate=this.translate,this.dragMoved=0,this.dragVel=0,this.lastMoveX=t.clientX,this.lastMoveTs=t.timeStamp,this.glide=null,this.suppressClick=!1,this.opts.drag){this.el.classList.add("is-dragging");try{this.el.setPointerCapture(t.pointerId)}catch(t){}}this.sync()}onPointerMove(t){if(!this.dragging||t.pointerId!==this.pointerId)return;let i=t.clientX-this.dragStartX;if(this.dragMoved=Math.max(this.dragMoved,Math.abs(i)),!this.opts.drag)return;let e=t.timeStamp-this.lastMoveTs;e>0&&(this.dragVel=.8*this.dragVel+(t.clientX-this.lastMoveX)/e*200,this.lastMoveX=t.clientX,this.lastMoveTs=t.timeStamp),this.translate=this.dragStartTranslate+i,this.normalize(),this.apply()}onPointerUp(t){if(this.dragging&&t.pointerId===this.pointerId){if(this.dragging=!1,this.pointerId=null,this.el.classList.remove("is-dragging"),this.dragMoved<6)return this.opts.tapPause&&!window.matchMedia("(hover: hover) and (pointer: fine)").matches?void this.setAuto(!this.wantAuto):void this.sync();if(this.suppressClick=!0,this.opts.drag&&"pointerup"===t.type&&t.timeStamp-this.lastMoveTs<80){let t=Math.max(-2600,Math.min(2600,this.dragVel));this.glide=Math.abs(t)>=140?t:null}this.setAuto(!0)}}onClick(t){this.suppressClick&&(this.suppressClick=!1,t.preventDefault(),t.stopPropagation())}onResize(){window.clearTimeout(this.resizeTimer),this.resizeTimer=window.setTimeout(()=>{this.layout(),this.sync()},200)}onVisibility(){this.sync()}init(){this.wrapper&&(this.layout(),this.opts.drag||this.el.classList.add("tickertape--no-drag"),window.matchMedia("(hover: hover) and (pointer: fine)").matches&&this.opts.hoverPause&&(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave)),(this.opts.drag||this.opts.tapPause)&&(this.el.addEventListener("pointerdown",this.onPointerDown),this.el.addEventListener("pointermove",this.onPointerMove),this.el.addEventListener("pointerup",this.onPointerUp),this.el.addEventListener("pointercancel",this.onPointerUp)),this.opts.drag&&this.el.addEventListener("click",this.onClick,!0),window.addEventListener("resize",this.onResize),document.addEventListener("visibilitychange",this.onVisibility),this.el.addEventListener("lazyloaded",this.onResize),this.setAuto(!0))}constructor(t){this.el=t;const i=parseInt(t.dataset.tickertapeHoverDelay,10);this.opts={drag:"false"!==t.dataset.tickertapeDrag,hoverPause:"false"!==t.dataset.tickertapeHoverPause,tapPause:"false"!==t.dataset.tickertapeTapPause,hoverDelay:Number.isNaN(i)?1300:i},this.wrapper=t.querySelector(".tickertape__wrapper"),this.originalNodes=null,this.originalCount=0,this.setWidth=0,this.translate=0,this.wantAuto=!1,this.dragging=!1,this.rafId=null,this.lastTs=0,this.hoverTimer=null,this.resizeTimer=null,this.pointerId=null,this.dragStartX=0,this.dragStartTranslate=0,this.dragMoved=0,this.dragVel=0,this.lastMove
1X=0,this.lastMoveTs=0,this.glide=null,this.suppressClick=!1,this.tick=this.tick.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onClick=this.onClick.bind(this),this.onResize=this.onResize.bind(this),this.onVisibility=this.onVisibility.bind(this)}}}}]);

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.