(() => {
      // fetch('https://trustmate.io/widget/api/4dea6a7e-0033-456c-b90f-1d48b7fe8a34/html?product=164859') - TODO: remove after platform multihornet fix - !!!frontend do not remove 
  
  const UI = {
    last: (where, what) => {where?.append(what)},
    first: (where, what) => {where?.insertBefore(what, where.firstChild)},
    after: (where, what) => {where?.parentNode.insertBefore(what, where.nextSibling)},
    before: (where, what) => {where?.parentNode.insertBefore(what, where)},
    replace: (where, what) => {where?.replaceWith(what)}
  };

  const RELOADS_LIMIT = 10;
  let reloadsCount = 0;

  function loadWidgetHtml() {
    const tag = document.getElementById('4dea6a7e-0033-456c-b90f-1d48b7fe8a34');

    if (tag) {
      widgetConfig = {
        target: tag.dataset.t,
        action: tag.dataset.a,
        observe: tag.dataset.o
      };

      if (widgetConfig.target && widgetConfig.action) {
        if (!Object.hasOwn(UI, widgetConfig.action)) {
          console.error(`TrustMate: action '${widgetConfig.action}' is wrong`);
          return;
        }

        const target = document.querySelector(widgetConfig.target);

        if (!target) {
          console.error(`TrustMate: target '${widgetConfig.target}' not found`);
          return;
        }

        UI[widgetConfig.action](target, tag);
      }

      tag.innerHTML = `<link rel="stylesheet" href="https://trustmate.io/build/css/widget/hornet.461b60eb.css"><style></style><div
 class="tm-hornet-container"
 style="display: none;"
 data-tmdisableExtra=""
 data-tmShowWithModal=""
 data-tmShowWithoutReviews=""
 data-tmShowZeroReviewsNumber=""
 data-tmShowOnMobile="1"
 data-tmScrollToWidget="1"
 data-url="https://trustmate.io/"
 data-rating-image=star-34
 data-reviews-slide-modal-url=https://trustmate.io/api/widget/4dea6a7e-0033-456c-b90f-1d48b7fe8a34/reviews-slide-modal?product=164859
></div><script type="application/ld+json">{"@context":"https://schema.org/","@type":"Product","name":"Pohovka rozkladana do obývacej izby Wiktor II - wzor Frido 04B / tmavý Rustikálny","image":["https://www.nabytok-bogart.sk/uploads/products_clear/164859/wersalka-rozkladana-do-salonu-wiktor-ii---wzor-frido-04b---ciemny-rustikal4009_man_5.jpg"],"brand":{"@type":"Brand","name":"Nabytok-Bogart"},"description":"Vysoko kvalitný Pohovka rozkladana do obývacej izby Wiktor II - wzor Frido 04B / tmavý Rustikálny od výrobcu Nabytok-Bogart - je nový kus nábytku pre svojpomocnú montáž, dostupný v našom internetovom obchode.\\n\\nCharakteristické vlastnosti produktu:\\nVýrobca: Nabytok-Bogart\\nRozmery (cm): 200 x 90 x 96\\nšírka: 200 cm\\nvýška: 90 cm\\nhĺbka: 96 cm","offers":{"@type":"Offer","url":"https://www.nabytok-bogart.sk/pohovka-rozkladana-do-obyvacej-izby-wiktor-ii---wzor-frido-04b---tmavy-rustikalny-p-164859-1634-1634.html","priceCurrency":"EUR","price":"395.00","availability":"https://schema.org/InStock"}}</script>`;

      if (widgetConfig.target && widgetConfig.action && widgetConfig.observe) {
        const observeTag = document.querySelector(widgetConfig.observe);
        if (observeTag) {
          const widgetObserver = new MutationObserver((mutations, observer) => {
            const tag = document.getElementById('4dea6a7e-0033-456c-b90f-1d48b7fe8a34');
            if (tag) return;
            observer.disconnect();
            if (reloadsCount >= RELOADS_LIMIT) {
              console.error('TrustMate: widget 4dea6a7e-0033-456c-b90f-1d48b7fe8a34 reload limit reached');
              return;
            }
            ++reloadsCount;
            const newTag = document.createElement('div');
            newTag.id = '4dea6a7e-0033-456c-b90f-1d48b7fe8a34';
            newTag.dataset.a = widgetConfig.action;
            newTag.dataset.t = widgetConfig.target;
            newTag.dataset.o = widgetConfig.observe;
            const target = document.querySelector(widgetConfig.target);
            if (!target) {
              console.error(`TrustMate: target '${widgetConfig.target}' not found after last html change`);
              return;
            }
            UI[widgetConfig.action](target, newTag);
            loadWidgetScript();
          });
          widgetObserver.observe(observeTag, {childList: true, subtree: true});
        }
      }
    } else {
      console.error('TrustMate: No tag for 4dea6a7e-0033-456c-b90f-1d48b7fe8a34');
    }
  }

  function waitForWindow() {
    let index = 0;
    const intervalWindowId = setInterval(function() {
      if (typeof window !== 'undefined') {
        clearInterval(intervalWindowId);
        loadWidgetScript();
      }
      index += 1;
      if (index > 50) {
        clearInterval(intervalWindowId);
      }
    }, 50);
  }

  function loadWidgetScript() {
    if (1549 < 10) return;

    function scriptExists(url) {
      return document.querySelectorAll(`script[src="${url}"]`).length > 0;
    }

    if(scriptExists('https\u003A\/\/trustmate.io\/build\/js\/widget\/hornet.ea922e56.js')) {
      function removeJs(src) {
        document.querySelector(`script[src="${src}"]`).remove();
      }

      removeJs('https\u003A\/\/trustmate.io\/build\/js\/widget\/hornet.ea922e56.js');
    }

    const widgetScript = document.createElement('script');
    widgetScript.src = 'https\u003A\/\/trustmate.io\/build\/js\/widget\/hornet.ea922e56.js';
    widgetScript.defer = true;
    widgetScript.onload = () => {
      loadWidgetHtml();
    };
    document.body.appendChild(widgetScript);
  }

  if (typeof window === 'undefined') {
    waitForWindow();
  } else {
    loadWidgetScript();
  }
})();
