import{t as E,b as $,r as N,c as b,d as h,g as l,h as m,e as u,i as v,C as D,j as O,k as R,H as w,D as C,s as M,l as T,m as g,F as y,n as k,o as A}from"./index-BkylzejB.js";function F(_,o,i){if(!o||o===T(String(i??"")))return;let a;const t=_.__svelte_meta?.loc;t?a=`near ${t.file}:${t.line}:${t.column}`:g?.[y]&&(a=`in ${g[y]}`),k(A(a))}function I(_,o,i=!1,a=!1,t=!1){var d=_,n="";E(()=>{var f=$;if(n===(n=o()??"")){m&&u();return}if(f.nodes!==null&&(N(f.nodes.start,f.nodes.end),f.nodes=null),n!==""){if(m){for(var p=v.data,e=u(),c=e;e!==null&&(e.nodeType!==D||e.data!=="");)c=e,e=O(e);if(e===null)throw R(),w;C&&!t&&F(e.parentNode,p,n),h(v,c),d=M(e);return}var r=n+"";i?r=`<svg>${r}</svg>`:a&&(r=`<math>${r}</math>`);var s=b(r);if((i||a)&&(s=l(s)),h(l(s),s.lastChild),i||a)for(;l(s);)d.before(l(s));else d.before(s)}})}export{I as h};
