import{s as m,t as a,f as i,c as s,p,S as l}from"./Index-BD319sLY.js";import{yaml as f}from"./yaml-DsCXHVTH.js";import"./index-CFkTeYR6.js";import"./svelte/svelte.js";import"./Button-B93iS7QI.js";import"./Index-IwnOmiU7.js";import"./Check-Ck0iADAu.js";import"./Copy-ZPOKSMtK.js";import"./Download-DVtk-Jv3.js";import"./DownloadLink-BA_CcWW8.js";import"./file-url-BM5vV6hM.js";import"./BlockLabel-C-3Xp78Z.js";import"./Empty-D--JkcvQ.js";import"./Example-Wp-_4AVX.js";const n=/^---\s*$/m,L={defineNodes:[{name:"Frontmatter",block:!0},"FrontmatterMark"],props:[m({Frontmatter:[a.documentMeta,a.monospace],FrontmatterMark:a.processingInstruction}),i.add({Frontmatter:s,FrontmatterMark:()=>null})],wrap:p(t=>{const{parser:e}=l.define(f);return t.type.name==="Frontmatter"?{parser:e,overlay:[{from:t.from+4,to:t.to-4}]}:null}),parseBlock:[{name:"Frontmatter",before:"HorizontalRule",parse:(t,e)=>{let r;const o=new Array;if(t.lineStart===0&&n.test(e.text)){for(o.push(t.elt("FrontmatterMark",0,4));t.nextLine();)if(n.test(e.text)){r=t.lineStart+4;break}return r!==void 0&&(o.push(t.elt("FrontmatterMark",r-4,r)),t.addElement(t.elt("Frontmatter",0,r,o))),!0}return!1}}]};export{L as frontmatter};
//# sourceMappingURL=frontmatter-DZzO2xHj.js.map
