import{t as u,m as o,o as l,ae as g,as as y,R as h,T as p,a9 as w,at as R,au as O,av as m,P as T,aw as b,ad as f}from"./DOPisAOl.js";function C(v,c,i=!1,_=!1,E=!1){var d=v,t="";u(()=>{var s=g;if(t===(t=c()??"")){o&&l();return}if(s.nodes_start!==null&&(y(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),t!==""){if(o){h.data;for(var a=l(),n=a;a!==null&&(a.nodeType!==p||a.data!=="");)n=a,a=w(a);if(a===null)throw R(),O;m(h,n),d=T(a);return}var r=t+"";i?r=`<svg>${r}</svg>`:_&&(r=`<math>${r}</math>`);var e=b(r);if((i||_)&&(e=f(e)),m(f(e),e.lastChild),i||_)for(;f(e);)d.before(f(e));else d.before(e)}})}export{C as h};
