!function(){"use strict";function t(){n();const t=document.querySelectorAll("botsauto-license");0!==t.length&&t.forEach(function(t){e(t)})}function n(){document.querySelectorAll('.botsauto-checklist, .botsauto-form, [class*="botsauto"]').forEach(function(t){const n=t.querySelectorAll("botsauto-license, .botsauto-license-text"),e=new Set;n.forEach(function(t){const n=t.dataset.id||t.id;n&&(e.has(n)?t.remove():e.add(n))})})}function e(t){const n=t.dataset.id;if(!n)return;const e=document.querySelector('script[type="application/json"][data-for="'+n+'"]');if(!e)return;let o;try{o=JSON.parse(e.textContent)}catch(t){return void console.error("BOTSAUTO License: Failed to parse JSON data for ID:",n,t)}if(!o.html)return;const a=t.attachShadow({mode:"open"}),r=function(t){const n=t.dataset.align||"center",e=t.dataset.fontSize||"13px",o=t.dataset.color||"#4D4D4D",a=t.dataset.maxWidth||"",r=t.dataset.marginTop||"16px",i=t.dataset.marginBottom||"0px";let s=`\n            /* Host element styles */\n            :host {\n                display: block;\n                width: 100%;\n                margin-top: var(--mt, ${r});\n                margin-bottom: var(--mb, ${i});\n                contain: content;\n                box-sizing: border-box;\n            }\n            \n            /* Max width handling */\n            ${a?`:host { max-width: var(--maxw, ${a});margin-left: auto; margin-right: auto; }`:""}\n            \n            /* Inner content styles */\n            .wrap {\n                text-align: var(--align, ${n});\n                color: var(--color, ${o});\n                font: inherit;\n            }\n            \n            /* Typography for text elements */\n            .wrap :where(p, a, span, strong, em, small, li, div){\n                font-size: var(--fs, ${e});\n                line-height: 1.4;\n            }\n            \n            /* Link styles */\n            .wrap a {\n                color: inherit;\n                text-decoration: underline;\n            }\n            \n            /* Image styles */\n            .wrap img {\n                vertical-align: text-bottom;\n                height: 22px;\n                margin-left: 3px;\n            }\n            \n            /* Reset styles to avoid inheritance issues */\n            .wrap * {\n                box-sizing: inherit;\n            }\n        `;return s}(t),i=document.createElement("style");i.textContent=r;const s=document.createElement("div");s.className="wrap",s.innerHTML=o.html,a.appendChild(i),a.appendChild(s),e.remove(),t.setAttribute("data-upgraded","true")}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){t()}):t(),window.addEventListener("load",function(){n();const t=document.querySelectorAll("botsauto-license:not([data-upgraded])");t.length>0&&t.forEach(e)})}();