            await wait();
            }

            n++;
        }
        el.style.setProperty("--cursor-visibility", "collapse");
    }

    function parseDelay(d) {
        const parsed = parseInt(d, 10);
        if (isNaN(parsed)) return 0;
        return parsed;
    }

    const titleDelay = parseDelay("{{ .titledelay }}"),
        contentDelay = parseDelay("{{ .contentdelay }}");
    const typeeffetct = async () => {
        await typewriter("{{ .title }}", "activity-title", titleDelay);
        awai