UNPKG

@getontime/cli

Version:

Time keeping for live events

2 lines 1.38 kB
System.register(["./jsx-runtime-legacy-DMkDNnVj.js","./useSocket-legacy-C772wu7w.js"],function(e,t){var n,r,o,c,f,s;return e("t",function(){const e=o(e=>e.clock),t=(0,f.useRef)({clock:e,time:performance.now()}),[,n]=(0,f.useState)(0);(0,f.useEffect)(()=>{t.current={clock:e,time:performance.now()}},[e]),(0,f.useEffect)(()=>{const e=setInterval(()=>n(e=>e+1),1e3);return()=>clearInterval(e)},[]);const r=performance.now()-t.current.time;return r<s?e:t.current.clock+Math.round(r)}),{setters:[function(e){n=e.a,r=e.n},function(e){o=e.st}],execute:function(){(c=document.createElement("style")).textContent=".blink{animation:1s step-start infinite blink}@keyframes blink{0%{opacity:1}50%{opacity:.2}}.fourtyfive{transform:rotate(45deg)}sup.period{font-size:.5em;top:-1em}.subscript{font-size:.75em}\n/*$vite$:1*/",document.head.appendChild(c),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f14ad0099eab1969fdd065b56af5fdd3cf530de6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9442b9b2-ce3b-484d-9477-ff80dce971f8",e._sentryDebugIdIdentifier="sentry-dbid-9442b9b2-ce3b-484d-9477-ff80dce971f8")}catch(e){}}(),f=n(r(),1),s=1500}}}); //# sourceMappingURL=useAutoTickingClock-legacy-CkfIpBWe.js.map