PageSourceSearch

https://essexmonastery.com/wp-content/cache/perfmatters/essexmonas…12f4258651b.time-localizer.min.js?ver=1.4.1

js essexmonastery.com collected 2026-09-24 20:39:53 UTC 2,794 bytes, 19 lines download raw bytes

1(function(){'use strict';var i18n=window.yayrevTimeI18n||{};var locale=i18n.locale||document.documentElement.lang||undefined;var ABSOLUTE_FORMATS={short:{month:'short',day:'numeric',year:'numeric'},long:{month:'long',day:'numeric',year:'numeric'},default:{dateStyle:'medium'},datetime:{dateStyle:'medium',timeStyle:'short'},ymd:{year:'numeric',month:'2-digit',day:'2-digit'}};var formatterCache={};function absoluteFormatter(format){if(!formatterCache[format]){var fmtLocale=format==='ymd'?'en-CA':locale;try{formatterCache[format]=new Intl.DateTimeFormat(fmtLocale,ABSOLUTE_FORMATS[format])}catch(e){formatterCache[format]=new Intl.DateTimeFormat(undefined,ABSOLUTE_FORMATS[format])}}
2return formatterCache[format]}
3function formatRelative(date){var diff=Math.round((Date.now()-date.getTime())/1000);if(diff<60){return i18n.justNow}
4var pick=function(n,singular,plural){return(n===1?singular:plural).replace('%d',n)};if(diff<3600){return pick(Math.round(diff/60),i18n.minute,i18n.minutes)}
5if(diff<86400){return pick(Math.round(diff/3600),i18n.hour,i18n.hours)}
6if(diff<604800){return pick(Math.round(diff/86400),i18n.day,i18n.days)}
7if(diff<2592000){return pick(Math.round(diff/604800),i18n.week,i18n.weeks)}
8if(diff<31536000){return pick(Math.round(diff/2592000),i18n.month,i18n.months)}
9return pick(Math.round(diff/31536000),i18n.year,i18n.years)}
10function localizeOne(el){try{var date=new Date(el.getAttribute('datetime'));if(isNaN(date.getTime())){return}
11var format=el.getAttribute('data-yayrev-format');var text;if(format==='relative'){if(!i18n.minutes){return}
12text=formatRelative(date)}else if(format==='hybrid'){if(!i18n.minutes){return}
13text=Date.now()-date.getTime()<86400000?formatRelative(date):absoluteFormatter('default').format(date)}else if(ABSOLUTE_FORMATS[format]){text=absoluteFormatter(format).format(date)}else{return}
14el.textContent=text;el.setAttribute('data-yayrev-localized','1');el.title=date.toLocaleString(locale)}catch(e){}}
15var SELECTOR='time[data-yayrev-format]:not([data-yayrev-localized])';function localize(root){var scope=root&&root.querySelectorAll?root:document;if(scope!==document&&scope.matches&&scope.matches(SELECTOR)){localizeOne(scope)}
16var nodes=scope.querySelectorAll(SELECTOR);for(var i=0;i<nodes.length;i++){localizeOne(nodes[i])}}
17function observe(){if(!window.MutationObserver||!document.body){return}
18new MutationObserver(function(mutations){for(var m=0;m<mutations.length;m++){var added=mutations[m].addedNodes;for(var n=0;n<added.length;n++){if(added[n].nodeType===1){localize(added[n])}}}}).observe(document.body,{childList:!0,subtree:!0})}
19window.yayrevLocalizeTimes=localize;if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',function(){localize(document);observe()})}else{localize(document);observe()}})()

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.