a div img main script
https://share.hsforms.com/16DIoo--rTU2xbNW1MShkBg3ak9e Form UTF-8 E1D88321D59F7FA7002192A66C3FA663 #document html HTML lang en visible HEAD TITLE #text META name viewport content width=device-width, initial-scale=1 robots noindex, nofollow googlebot noindex LINK rel dns-prefetch href https://fonts.gstatic.com STYLE body{margin:0;background:#f4f8fa}.container{display:none;width:800px;margin:0 auto;margin-top:30px}.skip-to-form{left:-9999px;position:absolute}@media only screen and (max-width:800px){.container{width:100%}}.container.error,.container.loaded{display:block}.container.loaded{background:#fff;box-shadow:0 4px 8px 0 rgba(53,105,128,.3),0 6px 20px 0 rgba(165,200,213,.41)}#form-target{padding:40px}.hs-form_free.hs-form__thankyou-message{font-size:38px;text-align:center}.hs-form_free.hs-form__thankyou-message .hs-form__virality__link{font-size:18px;margin-top:240px;line-height:60px}.hs-form_free.hs-form__thankyou-message .hs-form__virality__link__sproket{width:60px;height:60px}.hs-form_free.hs-form__thankyou-message:before{display:block;content:url(https://js.hsformsqa.net/success-green.svg);width:130px;height:201px;padding-top:28px;margin:0 auto} SCRIPT src https://js.hs-analytics.net/analytics/1714137600000/5531666.js type text/javascript id hs-analytics https://js.hs-banner.com/v2/5531666/banner.js cookieBanner-5531666 data-cookieconsent ignore data-hs-ignore true data-loader hs-scriptloader data-hsjs-portal 5531666 data-hsjs-env prod data-hsjs-hublet na1 
        var isQa = false;
        window.hsFormsOnReady = [];
        window._hsq = window._hsq || [];
        window.disabledHsPopups = ['ADS', 'LEADFLOW', 'LIVE_CHAT', 'FEEDBACK', 'CALLS_TO_ACTION'];
        window.isQa = isQa;
        window.isLocal = window.location.hostname.split('.')[0] === 'local';
       
      (function (isQa, isLocal) {
        var getHubletSuffixFromUrl = function () {
          var host = window.location.hostname;
          return host.indexOf('-') !== -1
            ? host.split('.')[0].substring(host.indexOf('-'))
            : '';
        };

        var protocol = 'https://';
        var hubletSuffix = getHubletSuffixFromUrl();
        var qaSuffix = isQa ? 'qa' : '';

        var domainBuilders = {
          'js.hsforms.net': function () {
            return protocol + 'js' + hubletSuffix + '.hsforms' + qaSuffix + '.net';
          },
          'forms.hsforms.com': function () {
            return protocol + 'forms' + hubletSuffix + '.hsforms' + qaSuffix + '.com';
          },
          'js.hs-scripts.com': function () {
            return protocol + 'js' + hubletSuffix + '.hs-scripts' + qaSuffix + '.com';
          },
          'api.hubspot.com': function () {
            return protocol + 'api' + hubletSuffix + '.hubspot' + qaSuffix + '.com';
          },
          'local.hsformsqa.com': function () {
            return 'https://local.hsappstatic.net/forms-embed/static/bundles/project-v3.js'
          }
        };

        window.apiHubspotUrl = domainBuilders['api.hubspot.com']();
        window.formsHsFormsUrl = domainBuilders['forms.hsforms.com']();
        window.jsHsFormsUrl = domainBuilders[ isLocal ? 'local.hsformsqa.com' : 'js.hsforms.net']();
        window.jsHsScriptsUrl = domainBuilders['js.hs-scripts.com']();
      })(window.isQa, window.isLocal);
     
      (function (jsHsFormsUrl, formsHsFormsUrl, isLocal) {
        var dnsPrefetchJs = document.createElement('link');
        var dnsPrefetchForms = document.createElement('link');
        var preconnectJs = document.createElement('link');
        var preconnectForms = document.createElement('link');
        var scriptJs = document.createElement('script');

        var hsVersion =
          (window.location.search.match(/[?&]{1}_hsVersion=([^&#]*)/) || [])[1] ||
          'v3';

        dnsPrefetchJs.rel = 'dns-prefetch';
        dnsPrefetchForms.rel = 'dns-prefetch';
        preconnectJs.rel = 'preconnect';
        preconnectForms.rel = 'preconnect';
        dnsPrefetchJs.href = jsHsFormsUrl;
        preconnectJs.href = jsHsFormsUrl;
        dnsPrefetchForms.href = formsHsFormsUrl;
        preconnectForms.href = formsHsFormsUrl;
        scriptJs.type = 'text/javascript';
        scriptJs.src = isLocal ? jsHsFormsUrl :  jsHsFormsUrl + '/forms/embed/' + hsVersion + '.js';
        scriptJs.async = true;
        scriptJs.defer = true;

        document.head.appendChild(dnsPrefetchJs);
        document.head.appendChild(dnsPrefetchForms);
        document.head.appendChild(preconnectJs);
        document.head.appendChild(preconnectForms);
        document.head.appendChild(scriptJs);
      })(window.jsHsFormsUrl, window.formsHsFormsUrl, window.isLocal);
     https://js.hsforms.net https://forms.hsforms.com preconnect https://js.hsforms.net/forms/embed/v3.js async defer 
      (function () {
        function isSupportedBrowser() {
          return (
            typeof window.WeakMap === 'function' &&
            typeof window.requestAnimationFrame === 'function'
          );
        }

        function setUrlQueryParamSupportedBrowser() {
          var url;
          var separator;
          var urlToGoTo;
          var hasHref = Object.prototype.hasOwnProperty.call(window.location, 'href');
          var supportedBrowser = isSupportedBrowser();

          if (!supportedBrowser) {
            if (hasHref) {
              url = window.location.href;
            } else {
              url = window.location;
            }

            if (url.indexOf('isSupportedBrowser') === -1) {
              separator = url.indexOf('?') === -1 ? '?' : '&';
              urlToGoTo = url + separator + 'isSupportedBrowser=' + supportedBrowser;
              if (supportedBrowser === false) {
                if (hasHref) {
                  window.location.href = urlToGoTo;
                } else {
                  window.location = urlToGoTo;
                }
              }
            }
          }
        }

        setUrlQueryParamSupportedBrowser();
      })();
     window.hs_RequestParams = {} 
      /*
      This parses the portalId and the formId from the hash in the url and then makes the request
      for form embed response.
      Make sure to minify when making changes
      npx uglify-js --compress --mangle -o <RESULT_PATH> <PATH_TO_THIS_FILE>
    */
    (function (RequestParams) {
      var LEGACY_UUID_IDENTIFIER = '-';
      var BYTE_TO_HEX_MAP = [];
      var BASE64_URL_SAFE_MAP = [
        ['+', '-'],
        ['/', '_'],
      ];
      var requestObj;

      function generateHexMap() {
        var result = [];
        var index;
        for (index = 0; index < 256; index++) {
          result.push((index + 0x100).toString(16).substr(1));
        }
        return result;
      }

      BYTE_TO_HEX_MAP = generateHexMap();

      function base64ToArrayBuffer(base64) {
        var binaryString = window.atob(base64);
        var result = [];
        var index;
        for (index = 0; index < binaryString.length; index++) {
          result.push(binaryString.charCodeAt(index));
        }
        return new window.Uint8Array(result);
      }

      function getVersionFromSymbol(symbol) {
        return (
          parseInt(symbol, 36) +
          (isNaN(symbol * 1) && symbol === symbol.toUpperCase() ? 26 : 0)
        );
      }

      function bytesToUuid(buf, offset) {
        var i = offset || 0;
        return [
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          '-',
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          '-',
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          '-',
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          '-',
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
          BYTE_TO_HEX_MAP[buf[i++]],
        ].join('');
      }

      function unescapeBase64(b64) {
        return BASE64_URL_SAFE_MAP.reduce(function (t, v) {
          return t.split('').map(c => c === v[1] ? v[0] : c).join('');
        }, b64);
      }

      function B64ToUuid(b64) {
        return bytesToUuid(base64ToArrayBuffer(b64));
      }

      function decodeFormToken(encodedString) {
        var legacyUuid = encodedString.charAt(0) === LEGACY_UUID_IDENTIFIER;
        var offset = legacyUuid ? 2 : 1;
        var formGuid = B64ToUuid(
          unescapeBase64(encodedString.substring(offset, 22 + offset))
        );
        return {
          formId: legacyUuid ? formGuid.replace(/-/g, '') : formGuid,
          portalId: parseInt(encodedString.substring(22 + offset), 36),
          version: getVersionFromSymbol(encodedString.charAt(offset - 1)),
        };
      }

      function getHubletFromUrl() {
        var subdomain = window.location.hostname.split('.')[0];
        var hublet = subdomain.split('-')[1];
        return hublet || '';
      }

      function getPathParams() {
        var pathParams = window.location.pathname.split('/');
        return pathParams.filter(function (param) {
          return param !== '' && param.indexOf('test-') === -1;
        });
      }

      function parseRequestParamsFromUrl() {
        var pathParams = getPathParams();
        var token = pathParams[0];
        var isPortalAndFormUrl = pathParams.length === 2;
        var requestParams;

        if (isPortalAndFormUrl) {
          return {
            region: getHubletFromUrl(),
            portalId: pathParams[0],
            formId: pathParams[1],
          };
        }

        requestParams = decodeFormToken(token);
        requestParams.region = getHubletFromUrl();

        return requestParams;
      }

      // Get Form request params hash from url
      requestObj = parseRequestParamsFromUrl();

      // Set to global
      RequestParams.portalId = requestObj.portalId;
      RequestParams.formId = requestObj.formId;
      RequestParams.region = requestObj.region;
      RequestParams.version = requestObj.version;
    })(window.hs_RequestParams);
     
  (function (requestParams, formsReadyQueue, isQa) {
    var context;
    var create;
    var instance;
    const versionMap = new Map([[1, "1.0"], [2, "2.0"]])
    const { url, formId, portalId, region, version } = requestParams

    context = {
      embedDefinitionUrl: url,
      formId: formId,
      portalId: portalId,
      region: region,
      target: '#form-target',
      ...(version && versionMap.get(version) && {
        __INTERNAL__CONTEXT: {
          editorVersion: versionMap.get(version)
        }
      }),
    };

    if (isQa) {
      context['env'] = 'qa';
    }

    function updateHtmlLang() {
      var form = document.querySelector('.hs-form-' + context.formId);
      var formLang = form.lang;

      if (formLang) {
        document.documentElement.setAttribute('lang', formLang);
      }
    }

    function scrollToTop() {
      try {
        window.scrollTo({ top: 0, behavior: 'smooth' });
      } catch (e) {
        window.scrollTo(0, 0);
      }
    }

    create = function () {
      instance = window.hbspt.forms.create(context);
      instance.on('onFormReady', updateHtmlLang);
      instance.on('onPageChange', scrollToTop);
      window.HubSpotForms.currentForm = instance;
    };

    formsReadyQueue.push(create);
  })(window.hs_RequestParams, window.hsFormsOnReady, window.isQa);

   //static.hsappstatic.net/forms-submission-pages/static-1.4361/bundles/share-legacy.js crossorigin anonymous BODY A class skip-to-form #main Skip to form MAIN main DIV container error form-target data-hs-forms-root role alert hs-form__render-error data-error-key DEFINITION_FAILURE style background-color: rgb(245, 248, 250); text-align: center; IMG https://static.hsappstatic.net/ui-images/static-2.343/optimized/errors/general.svg width 175px height alt clip 
      (function (requestParams, jsHsScriptsUrl) {
        var script = document.createElement('script');
        var shouldSkipScriptLoader;
        var regex;
        var results;

        function getParameterByName(name, url) {
          if (!url) {
            url = window.location.href;
          }
          name = name.replace(/[[]]/g, '$&');
          regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)');
          results = regex.exec(url);
          if (!results) return null;
          if (!results[2]) return '';
          return decodeURIComponent(results[2].replace(/\+/g, ' '));
        }

        shouldSkipScriptLoader = getParameterByName('hs_skipScriptLoader');
        if (!shouldSkipScriptLoader) {
          script.type = 'text/javascript';
          script.id = 'hs-script-loader';
          script.async = true;
          script.defer = true;
          script.src = jsHsScriptsUrl + '/' + requestParams.portalId + '.js';
          document.body.appendChild(script);
        }
      })(window.hs_RequestParams, window.jsHsScriptsUrl);
     hs-script-loader https://js.hs-scripts.com/5531666.js data-hubspot-rendered