import{b as E,d as D,f as y,a as g}from"../chunks/Cew_q46a.js";import{c as H,o as K}from"../chunks/DcKRL2at.js";import{t as z,q as $,w as I,$ as x,aX as Y,B as T,C as B,X as L,aQ as F,aN as X,o as G,v as j,p as O,a as N,c as f,s as w,a2 as k,a0 as A,j as v,r as u,aY as J}from"../chunks/DiR_Syld.js";import{d as W}from"../chunks/B6Ikv-5C.js";import{i as Q}from"../chunks/BkRTvK_t.js";import{s as U}from"../chunks/58wTqVZX.js";import{s as V}from"../chunks/zAv0u1wk.js";import{e as Z,i as ee}from"../chunks/C-ONJZal.js";import{s as C}from"../chunks/BCt2Yrch.js";import{a as ae}from"../chunks/Bu93Vllf.js";import{p as q}from"../chunks/CaQ1TycU.js";import{s as R}from"../chunks/zrRTLWHD.js";import{p as te}from"../chunks/CFMktExA.js";import"../chunks/DHDEAeFQ.js";function re(e,t,r=!1,i=!1,o=!1){var s=e,n="";z(()=>{var a=x;if(n===(n=t()??"")){$&&I();return}if(a.nodes_start!==null&&(Y(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),n!==""){if($){T.data;for(var l=I(),d=l;l!==null&&(l.nodeType!==B||l.data!=="");)d=l,l=L(l);if(l===null)throw F(),X;E(T,d),s=G(l);return}var p=n+"";r?p=``:i&&(p=``);var c=D(p);if((r||i)&&(c=j(c)),E(j(c),c.lastChild),r||i)for(;j(c);)s.before(j(c));else s.before(c)}})}function P(e,t,r,i,o,s){var n=e.__className;if($||n!==r||n===void 0){var a=ae(r,i,s);(!$||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}else if(s&&o!==s)for(var l in s){var d=!!s[l];(o==null||d!==!!o[l])&&e.classList.toggle(l,d)}return s}const se=!0,oe=!0,le=!1,Ae=Object.freeze(Object.defineProperty({__proto__:null,csr:oe,prerender:le,ssr:se},Symbol.toStringTag,{value:"Module"}));var ne=y('');function ie(e,t){O(t,!0);let r=te(t,"menuOpen",3,!1);const i=H();var o=ne();let s;o.__click=()=>i("click",{isOpen:!r()}),z(()=>s=P(o,1,"header__toggle svelte-1llvae8",null,s,{opened:r()})),g(e,o),N()}W(["click"]);var ce=y('
`,embed:({data:e})=>{const t=e.service;return t==="vimeo"?``:t==="youtube"?``:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:e})=>`${e.text}`,image:({data:e})=>{var r;const t=e.caption?e.caption:"Image";return``},list:({data:e})=>{const t=e.style==="unordered"?"ul":"ol",r=(i,o)=>{const s=i.map(n=>{var l;if(!n.content&&!n.items)return`
- ${e.caption}`,delimiter:({data:e})=>" "},he=(e={},t={strict:!1})=>{const r={...me,...e};return{parse:i=>(({blocks:o},s,n)=>o.reduce((a,l)=>{if(l.type in s)return a+s[l.type](l);const d=`[editorjs-html]: Parser function for ${l.type} does not exist`;if(n.strict)throw new Error(d);return console.error(d),a},""))(i,r,t),parseBlock:i=>((o,s,n)=>{if(o.type in s)return s[o.type](o);const a=`[editorjs-html]: Parser function for ${o.type} does not exist`;if(n.strict)throw new Error(a);console.error(a)})(i,r,t)}};const _e=fe(he);var ge=y("");function ye(e,t){O(t,!0);const o=_e({paragraph:a=>`