1import{p as l,s as w}from"./D11M5v2T.js";import{q as F,F as y,s as u,v as m,x as f,y as M,z as D}from"./8EojVNpW.js";function S(o,s){const{frontmatter:d,body:r}=F(o),t=d.trim()?l(d)??{}:{},a=y.parse(t),e=s(a),n={...t,...e},i=e.date!==void 0?e.date:a.date,p=e.updated!==void 0?e.updated:a.updated,v=i!==null&&(e.date!==void 0||t.date!==void 0),P=p!==null&&(e.updated!==void 0||t.updated!==void 0);if(v){const c=u(t.date)??m(i);n.date=f(i,c)}if(P){const c=t.updated!==void 0?t.updated:t.date,h=u(c)??m(p);n.updated=f(p,h)}const g=w(n,{lineWidth:0,defaultStringType:"PLAIN"});return M(g,r)}function T(o,s=new Date){const{frontmatter:d}=F(o),r=d.trim()?l(d)??{}:{},t=r.updated!==void 0?r.updated:r.date;return S(o,a=>{if(a.updated===null)return{};const e=u(t)??m(a.updated);return{updated:D(s,e)}})}export{S as updateFrontmatter,T as updateFrontmatterUpdated};
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.