(function () {
    let language = "de-DE"
    let slugName = "tollnicktheophil";
    let sdkUrl = "https://sdk.thernovotools.com/lib.sdk.frontend.js";

    let hatContentContainer = document.getElementById("hatContent");
    if (hatContentContainer) {
        let newHatContent = document.createElement('div');
        newHatContent.id = 'tt_hat_installer_slugName';
        newHatContent.setAttribute('data-slugName', slugName);
        newHatContent.setAttribute('data-lng', language);
        newHatContent.style.cssText = 'width:100%';
        hatContentContainer.appendChild(newHatContent);
    }
    else {
        document.write(`<div id='tt_hat_installer_slugName' data-slugName='${slugName}' data-lng='${language}' style=width:100%;></div>`);
    }

    let script = document.createElement('script');
    script.src = sdkUrl;
    script.defer = true;
    script.setAttribute('type', 'text/javascript');
    script.setAttribute('id', 'thernovo-sdk');
    document.getElementById('tt_hat_installer_slugName').appendChild(script);

})();