1import{nt as e}from"./dist-Dwy9VqNa.js";import{S as t,_ as n,a as r,d as i,f as a,i as o,l as s,r as c,u as l,x as u}from"./highlight-BvlNL7nJ.js";var d=e(),f=[],p={allowDangerousHtml:!0},m=/^(https?|ircs?|mailto|xmpp)$/i,h=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function g(e){let r=e.allowedElements,o=e.allowElement,c=e.children||``,m=e.className,g=e.components,v=e.disallowedElements,y=e.rehypePlugins||f,b=e.remarkPlugins||f,x=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...p}:p,S=e.skipHtml,C=e.unwrapDisallowed,w=e.urlTransform||_,T=s().use(n).use(b).use(i,x).use(y),E=new l;typeof c==`string`?E.value=c:``+c;for(let t of h)Object.hasOwn(e,t.from)&&``+t.from+(t.to?"use `"+t.to+"` instead":`remove it`)+t.id;let D=T.parse(E),O=T.runSync(D,E);return m&&(O={type:`element`,tagName:`div`,properties:{className:m},children:O.type===`root`?O.children:[O]}),a(O,k),t(O,{Fragment:d.Fragment,components:g,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function k(e,t,n){if(e.type===`raw`&&n&&typeof t==`number`)return S?n.children.splice(t,1):n.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in u)if(Object.hasOwn(u,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=u[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=w(String(n||``),t,e))}}if(e.type===`element`){let i=r?!r.includes(e.tagName):v?v.includes(e.tagName):!1;if(!i&&o&&typeof t==`number`&&(i=!o(e,t,n)),i&&n&&typeof t==`number`)return C&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}function _(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||m.test(e.slice(0,t))?e:``}var v={};function y(e){let t=this,n=e||v,i=t.data(),a=i.micromarkExtensions||=[],s=i.fromMarkdownExtensions||=[],l=i.toMarkdownExtensions||=[];a.push(c(n)),s.push(o()),l.push(r(n))}
1export{g as n,y as 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.