import{a as c,S as d,D as u,n as p,C as g,r as h,i as x,g as M,s as v}from"./vc-shell-vendor-domelementtype32435.js";import{U as f,I as y,B as C}from"./vc-shell-vendor-entities32435.js";const b=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),k=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),w=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function S(e){return e.replace(/"/g,"&quot;")}function U(e,n){var a;if(!e)return;const t=((a=n.encodeEntities)!==null&&a!==void 0?a:n.decodeEntities)===!1?S:n.xmlMode||n.encodeEntities!=="utf8"?f:C;return Object.keys(e).map(r=>{var i,o;const s=(i=e[r])!==null&&i!==void 0?i:"";return n.xmlMode==="foreign"&&(r=(o=k.get(r))!==null&&o!==void 0?o:r),!n.emptyAttrs&&!n.xmlMode&&s===""?r:`${r}="${t(s)}"`}).join(" ")}const l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function m(e,n={}){const a="length"in e?e:[e];let t="";for(let r=0;r<a.length;r++)t+=A(a[r],n);return t}function A(e,n){switch(e.type){case v:return m(e.children,n);case M:case x:return D(e);case h:return P(e);case g:return F(e);case p:case u:case d:return $(e,n);case c:return E(e,n)}}const L=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),T=new Set(["svg","math"]);function $(e,n){var a;n.xmlMode==="foreign"&&(e.name=(a=b.get(e.name))!==null&&a!==void 0?a:e.name,e.parent&&L.has(e.parent.name)&&(n={...n,xmlMode:!1})),!n.xmlMode&&T.has(e.name)&&(n={...n,xmlMode:"foreign"});let t=`<${e.name}`;const r=U(e.attribs,n);return r&&(t+=` ${r}`),e.children.length===0&&(n.xmlMode?n.selfClosingTags!==!1:n.selfClosingTags&&l.has(e.name))?(n.xmlMode||(t+=" "),t+="/>"):(t+=">",e.children.length>0&&(t+=m(e.children,n)),(n.xmlMode||!l.has(e.name))&&(t+=`</${e.name}>`)),t}function D(e){return`<${e.data}>`}function E(e,n){var a;let t=e.data||"";return((a=n.encodeEntities)!==null&&a!==void 0?a:n.decodeEntities)!==!1&&!(!n.xmlMode&&e.parent&&w.has(e.parent.name))&&(t=n.xmlMode||n.encodeEntities!=="utf8"?f(t):y(t)),t}function F(e){return`<![CDATA[${e.children[0].data}]]>`}function P(e){return`<!--${e.data}-->`}export{m as c};
