"use strict";!function(a,t){a.addEventListener("load",function(){var n,i,s,d,r,e=t("#layout > article"),o=(e=(e=e||t("#main"))||t("#box"),t("#read-progress div"));e&&o&&(n=t("#read-progress span"),i=!(!n||"50%"!==n.style.left),s=e.getBoundingClientRect(),d=s.y+a.pageYOffset,r=s.height+d,a.addEventListener("scroll",function(){var e,t=a.pageYOffset;d<t&&t<r?e=100*(t-d)/s.height:(t<d&&(e=0),d<t&&(e=100)),o.style.width=e+"%",n&&(i&&(n.style.left=e/2+"%"),n.innerText=Math.round(e)+"%")},{passive:!0}),a.addEventListener("resize",function(){s=e.getBoundingClientRect(),d=s.y+a.pageYOffset,r=s.height+d}),a.dispatchEvent(new Event("scroll")))})}((document,window),document.querySelector.bind(document));