1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2d63c630-88fc-442e-a084-b3ffb6127934`,e._sentryDebugIdIdentifier=`sentry-dbid-2d63c630-88fc-442e-a084-b3ffb6127934`)}catch{}})();import{i as e,n as t,s as n}from"./signals.module.Dhm_78zb.js";var r=`enacast_episode_progress`,i=500,a=3,o=.95,s=30,c=15,l=5e3,u=n({}),d=!1;function f(){if(typeof window>`u`)return{};try{let e=localStorage.getItem(r);if(!e)return{};let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return{}}}function p(e){if(!(typeof window>`u`))try{localStorage.setItem(r,JSON.stringify(e))}catch(t){if(t instanceof DOMException&&t.name===`QuotaExceededError`){let t=m(e,Math.floor(i/2));try{localStorage.setItem(r,JSON.stringify(t)),u.value=t}catch{}}}}function m(e,t=i){let n=Object.entries(e);return n.length<=t?e:(n.sort((e,t)=>t[1].updatedAt-e[1].updatedAt),Object.fromEntries(n.slice(0,t)))}typeof window<`u`&&(u.value=f(),e(()=>{u.value,!d&&(d=!0,queueMicrotask(()=>{d=!1,p(u.peek())}))}),window.addEventListener(`storage`,e=>{e.key===r&&(u.value=f())}));function h(e){return e?u.value[e]??null:null}function g(e,t,n){if(!e||!Number.isFinite(t)||t<0||!Number.isFinite(n)||n<=0||t<a)return;let r=Math.floor(t),i=Math.floor(n),c=t>=n-s||t/n>=o,l=u.value[e];l&&l.position===r&&l.duration===i&&l.completed===c||(u.value=m({...u.value,[e]:{position:r,duration:i,completed:c,updatedAt:Date.now()}}))}function _(e,t){if(!e)return;let n=Number.isFinite(t)&&t>0?Math.floor(t):0;u.value={...u.value,[e]:{position:n,duration:n,completed:!0,updatedAt:Date.now()}}}function v(e){let t=h(e);return!t||t.completed||t.position<a||t.duration>0&&t.position>=t.duration-c?null:t.position}function y(e){return t(()=>e?u.value[e]??null:null)}export{y as a,g as i,v as n,_ as r,l as t};
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.