PageSourceSearch

https://www.iu.org/build/assets/DateFormatter-CvNzgpbm.js

js iu.org collected 2026-09-24 09:19:49 UTC 2,209 bytes, 1 lines download raw bytes

vendor: 2,209 bytes, line 1
1var e=new Map,t=class{constructor(e,t={}){this.formatter=r(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return s()&&(this.resolvedHourCycle||=c(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},n={true:{ja:`h11`},false:{}};function r(t,r={}){if(typeof r.hour12==`boolean`&&a()){r={...r};let e=n[String(r.hour12)][t.split(`-`)[0]],i=r.hour12?`h12`:`h23`;r.hourCycle=e??i,delete r.hour12}let i=t+(r?Object.entries(r).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(e.has(i))return e.get(i);let o=new Intl.DateTimeFormat(t,r);return e.set(i,o),o}var i=null;function a(){return i??=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`,i}var o=null;function s(){return o??=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`,o}function c(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=r(e,{...t,timeZone:void 0}),i=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),a=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(i===0&&a===23)return`h23`;if(i===24&&a===23)return`h24`;if(i===0&&a===11)return`h11`;if(i===12&&a===11)return`h12`;throw Error(`Unexpected hour cycle result`)}export{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.