"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../util/check-quote.cjs.js");function v(i,m,t,u){const n=l.checkQuote(t),f=n==='"'?"Quote":"Apostrophe",c=t.enter("definition");let o=t.enter("label");const e=t.createTracker(u);let r=e.move("[");return r+=e.move(t.safe(t.associationId(i),{before:r,after:"]",...e.current()})),r+=e.move("]: "),o(),!i.url||/[\0- \u007F]/.test(i.url)?(o=t.enter("destinationLiteral"),r+=e.move("<"),r+=e.move(t.safe(i.url,{before:r,after:">",...e.current()})),r+=e.move(">")):(o=t.enter("destinationRaw"),r+=e.move(t.safe(i.url,{before:r,after:i.title?" ":`
`,...e.current()}))),o(),i.title&&(o=t.enter(`title${f}`),r+=e.move(" "+n),r+=e.move(t.safe(i.title,{before:r,after:n,...e.current()})),r+=e.move(n),o()),c(),r}exports.definition=v;
//# sourceMappingURL=definition.cjs.js.map
