<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";
(() =&gt; {
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __require = /* @__PURE__ */ ((x) =&gt; typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
    get: (a, b) =&gt; (typeof require !== "undefined" ? require : a)[b]
  }) : x)(function(x) {
    if (typeof require !== "undefined")
      return require.apply(this, arguments);
    throw Error('Dynamic require of "' + x + '" is not supported');
  });
  var __esm = (fn, res) =&gt; function __init() {
    return fn &amp;&amp; (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
  };
  var __commonJS = (cb, mod) =&gt; function __require2() {
    return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  };

  // &lt;define:process&gt;
  var init_define_process = __esm({
    "&lt;define:process&gt;"() {
    }
  });

  // utils_common/localeList.js
  var require_localeList = __commonJS({
    "utils_common/localeList.js"(exports, module) {
      "use strict";
      init_define_process();
      var localeList = [
        "sg-en",
        "kr-ko",
        "au-en",
        "nz-en",
        "mx-es",
        "co-es",
        "ar-es",
        "cl-es",
        "br-pt",
        "pe-es",
        "in-en",
        "th-en",
        "th-th",
        "id-en",
        "id-id",
        "hk-zh",
        "hk-en",
        "my-en"
        // this list needs to be extended
      ];
      module.exports = localeList;
    }
  });

  // utils_common/lazysizes.js
  var require_lazysizes = __commonJS({
    "utils_common/lazysizes.js"(exports, module) {
      "use strict";
      init_define_process();
      !function(e) {
        var t = function(u, D, f) {
          "use strict";
          var k, H;
          if (function() {
            var e3;
            var t3 = { lazyClass: "lazyload", loadedClass: "lazyloaded", loadingClass: "lazyloading", preloadClass: "lazypreload", errorClass: "lazyerror", autosizesClass: "lazyautosizes", fastLoadedClass: "ls-is-cached", iframeLoadMode: 0, srcAttr: "data-src", srcsetAttr: "data-srcset", sizesAttr: "data-sizes", minSize: 40, customMedia: {}, init: true, expFactor: 1.5, hFac: 0.8, loadMode: 2, loadHidden: true, ricTimeout: 0, throttleDelay: 125 };
            H = u.lazySizesConfig || u.lazysizesConfig || {};
            for (e3 in t3) {
              if (!(e3 in H)) {
                H[e3] = t3[e3];
              }
            }
          }(), !D || !D.getElementsByClassName) {
            return { init: function() {
            }, cfg: H, noSupport: true };
          }
          var O = D.documentElement, i = u.HTMLPictureElement, P = "addEventListener", $ = "getAttribute", q = u[P].bind(u), I = u.setTimeout, U = u.requestAnimationFrame || I, o = u.requestIdleCallback, j = /^picture$/i, r = ["load", "error", "lazyincluded", "_lazyloaded"], a = {}, G = Array.prototype.forEach, J = function(e3, t3) {
            if (!a[t3]) {
              a[t3] = new RegExp("(\\s|^)" + t3 + "(\\s|$)");
            }
            return a[t3].test(e3[$]("class") || "") &amp;&amp; a[t3];
          }, K = function(e3, t3) {
            if (!J(e3, t3)) {
              e3.setAttribute("class", (e3[$]("class") || "").trim() + " " + t3);
            }
          }, Q = function(e3, t3) {
            var a2;
            if (a2 = J(e3, t3)) {
              e3.setAttribute("class", (e3[$]("class") || "").replace(a2, " "));
            }
          }, V = function(t3, a2, e3) {
            var i2 = e3 ? P : "removeEventListener";
            if (e3) {
              V(t3, a2);
            }
            r.forEach(function(e4) {
              t3[i2](e4, a2);
            });
          }, X = function(e3, t3, a2, i2, r2) {
            var n = D.createEvent("Event");
            if (!a2) {
              a2 = {};
            }
            a2.instance = k;
            n.initEvent(t3, !i2, !r2);
            n.detail = a2;
            e3.dispatchEvent(n);
            return n;
          }, Y = function(e3, t3) {
            var a2;
            if (!i &amp;&amp; (a2 = u.picturefill || H.pf)) {
              if (t3 &amp;&amp; t3.src &amp;&amp; !e3[$]("srcset")) {
                e3.setAttribute("srcset", t3.src);
              }
              a2({ reevaluate: true, elements: [e3] });
            } else if (t3 &amp;&amp; t3.src) {
              e3.src = t3.src;
            }
          }, Z = function(e3, t3) {
            return (getComputedStyle(e3, null) || {})[t3];
          }, s = function(e3, t3, a2) {
            a2 = a2 || e3.offsetWidth;
            while (a2 &lt; H.minSize &amp;&amp; t3 &amp;&amp; !e3._lazysizesWidth) {
              a2 = t3.offsetWidth;
              t3 = t3.parentNode;
            }
            return a2;
          }, ee = function() {
            var a2, i2;
            var t3 = [];
            var r2 = [];
            var n = t3;
            var s2 = function() {
              var e4 = n;
              n = t3.length ? r2 : t3;
              a2 = true;
              i2 = false;
              while (e4.length) {
                e4.shift()();
              }
              a2 = false;
            };
            var e3 = function(e4, t4) {
              if (a2 &amp;&amp; !t4) {
                e4.apply(this, arguments);
              } else {
                n.push(e4);
                if (!i2) {
                  i2 = true;
                  (D.hidden ? I : U)(s2);
                }
              }
            };
            e3._lsFlush = s2;
            return e3;
          }(), te = function(a2, e3) {
            return e3 ? function() {
              ee(a2);
            } : function() {
              var e4 = this;
              var t3 = arguments;
              ee(function() {
                a2.apply(e4, t3);
              });
            };
          }, ae = function(e3) {
            var a2;
            var i2 = 0;
            var r2 = H.throttleDelay;
            var n = H.ricTimeout;
            var t3 = function() {
              a2 = false;
              i2 = f.now();
              e3();
            };
            var s2 = o &amp;&amp; n &gt; 49 ? function() {
              o(t3, { timeout: n });
              if (n !== H.ricTimeout) {
                n = H.ricTimeout;
              }
            } : te(function() {
              I(t3);
            }, true);
            return function(e4) {
              var t4;
              if (e4 = e4 === true) {
                n = 33;
              }
              if (a2) {
                return;
              }
              a2 = true;
              t4 = r2 - (f.now() - i2);
              if (t4 &lt; 0) {
                t4 = 0;
              }
              if (e4 || t4 &lt; 9) {
                s2();
              } else {
                I(s2, t4);
              }
            };
          }, ie = function(e3) {
            var t3, a2;
            var i2 = 99;
            var r2 = function() {
              t3 = null;
              e3();
            };
            var n = function() {
              var e4 = f.now() - a2;
              if (e4 &lt; i2) {
                I(n, i2 - e4);
              } else {
                (o || r2)(r2);
              }
            };
            return function() {
              a2 = f.now();
              if (!t3) {
                t3 = I(n, i2);
              }
            };
          }, e2 = function() {
            var v, m, c, h, e3;
            var y, z, g, p, C, b, A;
            var n = /^img$/i;
            var d = /^iframe$/i;
            var E = "onscroll" in u &amp;&amp; !/(gle|ing)bot/.test(navigator.userAgent);
            var _ = 0;
            var w = 0;
            var M = 0;
            var N = -1;
            var L = function(e4) {
              M--;
              if (!e4 || M &lt; 0 || !e4.target) {
                M = 0;
              }
            };
            var x = function(e4) {
              if (A == null) {
                A = Z(D.body, "visibility") == "hidden";
              }
              return A || !(Z(e4.parentNode, "visibility") == "hidden" &amp;&amp; Z(e4, "visibility") == "hidden");
            };
            var W = function(e4, t4) {
              var a3;
              var i3 = e4;
              var r3 = x(e4);
              g -= t4;
              b += t4;
              p -= t4;
              C += t4;
              while (r3 &amp;&amp; (i3 = i3.offsetParent) &amp;&amp; i3 != D.body &amp;&amp; i3 != O) {
                r3 = (Z(i3, "opacity") || 1) &gt; 0;
                if (r3 &amp;&amp; Z(i3, "overflow") != "visible") {
                  a3 = i3.getBoundingClientRect();
                  r3 = C &gt; a3.left &amp;&amp; p &lt; a3.right &amp;&amp; b &gt; a3.top - 1 &amp;&amp; g &lt; a3.bottom + 1;
                }
              }
              return r3;
            };
            var t3 = function() {
              var e4, t4, a3, i3, r3, n2, s3, o3, l2, u2, f2, c2;
              var d2 = k.elements;
              if ((h = H.loadMode) &amp;&amp; M &lt; 8 &amp;&amp; (e4 = d2.length)) {
                t4 = 0;
                N++;
                for (; t4 &lt; e4; t4++) {
                  if (!d2[t4] || d2[t4]._lazyRace) {
                    continue;
                  }
                  if (!E || k.prematureUnveil &amp;&amp; k.prematureUnveil(d2[t4])) {
                    R(d2[t4]);
                    continue;
                  }
                  if (!(o3 = d2[t4][$]("data-expand")) || !(n2 = o3 * 1)) {
                    n2 = w;
                  }
                  if (!u2) {
                    u2 = !H.expand || H.expand &lt; 1 ? O.clientHeight &gt; 500 &amp;&amp; O.clientWidth &gt; 500 ? 500 : 370 : H.expand;
                    k._defEx = u2;
                    f2 = u2 * H.expFactor;
                    c2 = H.hFac;
                    A = null;
                    if (w &lt; f2 &amp;&amp; M &lt; 1 &amp;&amp; N &gt; 2 &amp;&amp; h &gt; 2 &amp;&amp; !D.hidden) {
                      w = f2;
                      N = 0;
                    } else if (h &gt; 1 &amp;&amp; N &gt; 1 &amp;&amp; M &lt; 6) {
                      w = u2;
                    } else {
                      w = _;
                    }
                  }
                  if (l2 !== n2) {
                    y = innerWidth + n2 * c2;
                    z = innerHeight + n2;
                    s3 = n2 * -1;
                    l2 = n2;
                  }
                  a3 = d2[t4].getBoundingClientRect();
                  if ((b = a3.bottom) &gt;= s3 &amp;&amp; (g = a3.top) &lt;= z &amp;&amp; (C = a3.right) &gt;= s3 * c2 &amp;&amp; (p = a3.left) &lt;= y &amp;&amp; (b || C || p || g) &amp;&amp; (H.loadHidden || x(d2[t4])) &amp;&amp; (m &amp;&amp; M &lt; 3 &amp;&amp; !o3 &amp;&amp; (h &lt; 3 || N &lt; 4) || W(d2[t4], n2))) {
                    R(d2[t4]);
                    r3 = true;
                    if (M &gt; 9) {
                      break;
                    }
                  } else if (!r3 &amp;&amp; m &amp;&amp; !i3 &amp;&amp; M &lt; 4 &amp;&amp; N &lt; 4 &amp;&amp; h &gt; 2 &amp;&amp; (v[0] || H.preloadAfterLoad) &amp;&amp; (v[0] || !o3 &amp;&amp; (b || C || p || g || d2[t4][$](H.sizesAttr) != "auto"))) {
                    i3 = v[0] || d2[t4];
                  }
                }
                if (i3 &amp;&amp; !r3) {
                  R(i3);
                }
              }
            };
            var a2 = ae(t3);
            var S = function(e4) {
              var t4 = e4.target;
              if (t4._lazyCache) {
                delete t4._lazyCache;
                return;
              }
              L(e4);
              K(t4, H.loadedClass);
              Q(t4, H.loadingClass);
              V(t4, B);
              X(t4, "lazyloaded");
            };
            var i2 = te(S);
            var B = function(e4) {
              i2({ target: e4.target });
            };
            var T = function(e4, t4) {
              var a3 = e4.getAttribute("data-load-mode") || H.iframeLoadMode;
              if (a3 == 0) {
                e4.contentWindow.location.replace(t4);
              } else if (a3 == 1) {
                e4.src = t4;
              }
            };
            var F = function(e4) {
              var t4;
              var a3 = e4[$](H.srcsetAttr);
              if (t4 = H.customMedia[e4[$]("data-media") || e4[$]("media")]) {
                e4.setAttribute("media", t4);
              }
              if (a3) {
                e4.setAttribute("srcset", a3);
              }
            };
            var s2 = te(function(t4, e4, a3, i3, r3) {
              var n2, s3, o3, l2, u2, f2;
              if (!(u2 = X(t4, "lazybeforeunveil", e4)).defaultPrevented) {
                if (i3) {
                  if (a3) {
                    K(t4, H.autosizesClass);
                  } else {
                    t4.setAttribute("sizes", i3);
                  }
                }
                s3 = t4[$](H.srcsetAttr);
                n2 = t4[$](H.srcAttr);
                if (r3) {
                  o3 = t4.parentNode;
                  l2 = o3 &amp;&amp; j.test(o3.nodeName || "");
                }
                f2 = e4.firesLoad || "src" in t4 &amp;&amp; (s3 || n2 || l2);
                u2 = { target: t4 };
                K(t4, H.loadingClass);
                if (f2) {
                  clearTimeout(c);
                  c = I(L, 2500);
                  V(t4, B, true);
                }
                if (l2) {
                  G.call(o3.getElementsByTagName("source"), F);
                }
                if (s3) {
                  t4.setAttribute("srcset", s3);
                } else if (n2 &amp;&amp; !l2) {
                  if (d.test(t4.nodeName)) {
                    T(t4, n2);
                  } else {
                    t4.src = n2;
                  }
                }
                if (r3 &amp;&amp; (s3 || l2)) {
                  Y(t4, { src: n2 });
                }
              }
              if (t4._lazyRace) {
                delete t4._lazyRace;
              }
              Q(t4, H.lazyClass);
              ee(function() {
                var e5 = t4.complete &amp;&amp; t4.naturalWidth &gt; 1;
                if (!f2 || e5) {
                  if (e5) {
                    K(t4, H.fastLoadedClass);
                  }
                  S(u2);
                  t4._lazyCache = true;
                  I(function() {
                    if ("_lazyCache" in t4) {
                      delete t4._lazyCache;
                    }
                  }, 9);
                }
                if (t4.loading == "lazy") {
                  M--;
                }
              }, true);
            });
            var R = function(e4) {
              if (e4._lazyRace) {
                return;
              }
              var t4;
              var a3 = n.test(e4.nodeName);
              var i3 = a3 &amp;&amp; (e4[$](H.sizesAttr) || e4[$]("sizes"));
              var r3 = i3 == "auto";
              if ((r3 || !m) &amp;&amp; a3 &amp;&amp; (e4[$]("src") || e4.srcset) &amp;&amp; !e4.complete &amp;&amp; !J(e4, H.errorClass) &amp;&amp; J(e4, H.lazyClass)) {
                return;
              }
              t4 = X(e4, "lazyunveilread").detail;
              if (r3) {
                re.updateElem(e4, true, e4.offsetWidth);
              }
              e4._lazyRace = true;
              M++;
              s2(e4, t4, r3, i3, a3);
            };
            var r2 = ie(function() {
              H.loadMode = 3;
              a2();
            });
            var o2 = function() {
              if (H.loadMode == 3) {
                H.loadMode = 2;
              }
              r2();
            };
            var l = function() {
              if (m) {
                return;
              }
              if (f.now() - e3 &lt; 999) {
                I(l, 999);
                return;
              }
              m = true;
              H.loadMode = 3;
              a2();
              q("scroll", o2, true);
            };
            return { _: function() {
              e3 = f.now();
              k.elements = D.getElementsByClassName(H.lazyClass);
              v = D.getElementsByClassName(H.lazyClass + " " + H.preloadClass);
              q("scroll", a2, true);
              q("resize", a2, true);
              q("pageshow", function(e4) {
                if (e4.persisted) {
                  var t4 = D.querySelectorAll("." + H.loadingClass);
                  if (t4.length &amp;&amp; t4.forEach) {
                    U(function() {
                      t4.forEach(function(e5) {
                        if (e5.complete) {
                          R(e5);
                        }
                      });
                    });
                  }
                }
              });
              if (u.MutationObserver) {
                new MutationObserver(a2).observe(O, { childList: true, subtree: true, attributes: true });
              } else {
                O[P]("DOMNodeInserted", a2, true);
                O[P]("DOMAttrModified", a2, true);
                setInterval(a2, 999);
              }
              q("hashchange", a2, true);
              ["focus", "mouseover", "click", "load", "transitionend", "animationend"].forEach(function(e4) {
                D[P](e4, a2, true);
              });
              if (/d$|^c/.test(D.readyState)) {
                l();
              } else {
                q("load", l);
                D[P]("DOMContentLoaded", a2);
                I(l, 2e4);
              }
              if (k.elements.length) {
                t3();
                ee._lsFlush();
              } else {
                a2();
              }
            }, checkElems: a2, unveil: R, _aLSL: o2 };
          }(), re = function() {
            var a2;
            var n = te(function(e4, t4, a3, i3) {
              var r2, n2, s2;
              e4._lazysizesWidth = i3;
              i3 += "px";
              e4.setAttribute("sizes", i3);
              if (j.test(t4.nodeName || "")) {
                r2 = t4.getElementsByTagName("source");
                for (n2 = 0, s2 = r2.length; n2 &lt; s2; n2++) {
                  r2[n2].setAttribute("sizes", i3);
                }
              }
              if (!a3.detail.dataAttr) {
                Y(e4, a3.detail);
              }
            });
            var i2 = function(e4, t4, a3) {
              var i3;
              var r2 = e4.parentNode;
              if (r2) {
                a3 = s(e4, r2, a3);
                i3 = X(e4, "lazybeforesizes", { width: a3, dataAttr: !!t4 });
                if (!i3.defaultPrevented) {
                  a3 = i3.detail.width;
                  if (a3 &amp;&amp; a3 !== e4._lazysizesWidth) {
                    n(e4, r2, i3, a3);
                  }
                }
              }
            };
            var e3 = function() {
              var e4;
              var t4 = a2.length;
              if (t4) {
                e4 = 0;
                for (; e4 &lt; t4; e4++) {
                  i2(a2[e4]);
                }
              }
            };
            var t3 = ie(e3);
            return { _: function() {
              a2 = D.getElementsByClassName(H.autosizesClass);
              q("resize", t3);
            }, checkElems: t3, updateElem: i2 };
          }(), t2 = function() {
            if (!t2.i &amp;&amp; D.getElementsByClassName) {
              t2.i = true;
              re._();
              e2._();
            }
          };
          return I(function() {
            H.init &amp;&amp; t2();
          }), k = { cfg: H, autoSizer: re, loader: e2, init: t2, uP: Y, aC: K, rC: Q, hC: J, fire: X, gW: s, rAF: ee };
        }(e, e.document, Date);
        e.lazySizes = t, "object" == typeof module &amp;&amp; module.exports &amp;&amp; (module.exports = t);
      }("undefined" != typeof window ? window : {});
    }
  });

  // sites/hp/src/browser.ts
  init_define_process();

  // utils_common/getLocale.ts
  init_define_process();
  var LOCALES = require_localeList();
  var getLocale_default = (path) =&gt; {
    if (!path) {
      console.error("Edgio --&gt; No path data in request!");
      return null;
    }
    return LOCALES.find((locale) =&gt; path.includes(`/${locale}/shop`));
  };

  // sites/hp/stores/sg-en/client/index.ts
  init_define_process();

  // sites/hp/stores/sg-en/client/lateLoadScripts.ts
  init_define_process();

  // utils_common/appendRawHtmlToHead.ts
  init_define_process();
  var appendRawHtmlToHead_default = (content) =&gt; {
    const range = document.createRange();
    range.selectNode(document.head);
    const fragment = range.createContextualFragment(content);
    document.head.appendChild(fragment);
  };

  // sites/hp/stores/sg-en/client/lateLoadScripts.ts
  var lateLoadScripts_default = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/sg-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();

  // utils_common/getPrivateStorePath.ts
  init_define_process();
  var getPrivateStorePath_default = (pathname, locale) =&gt; {
    if (!pathname || !locale) {
      console.error("Edgio --&gt; No pathname or locale string was sent to getPrivateStorePath function!");
      return;
    }
    const privateStoreRegexp = new RegExp(`^\\/${locale}\\/shop\\/(student|business|cepp|epp)(\\/(.*)|\\/?$)`, "i");
    const privateStoreMatch = pathname.match(privateStoreRegexp);
    const privateStorePath = privateStoreMatch &amp;&amp; privateStoreMatch[1] || "";
    console.log(`Edgio --&gt; Current private store path - ${privateStorePath || "not defined, this can be main store page."}`);
    return privateStorePath;
  };

  // sites/hp/stores/sg-en/client/lateLoadPersonalisedHtml.ts
  var lateLoadPersonalisedHtml_default = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "sg-en");
              const customerAPIendpoint = `/sg-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/sg-en/client/index.ts
  var updatePlaceholderHeightAfterRender = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default(pageDoc);
          lateLoadScripts_default(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/hk-zh/client/index.ts
  init_define_process();

  // sites/hp/stores/hk-zh/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default2 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/hk-zh/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default2 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "hk-zh");
              const customerAPIendpoint = `/hk-zh/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender2(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/hk-zh/client/index.ts
  var updatePlaceholderHeightAfterRender2 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop2 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop2);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default2 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender2(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop2);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default2(pageDoc);
          lateLoadScripts_default2(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/hk-en/client/index.ts
  init_define_process();

  // sites/hp/stores/hk-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default3 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/hk-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default3 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "hk-en");
              const customerAPIendpoint = `/hk-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender3(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/hk-en/client/index.ts
  var updatePlaceholderHeightAfterRender3 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop3 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop3);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default3 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender3(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop3);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default3(pageDoc);
          lateLoadScripts_default3(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/id-id/client/index.ts
  init_define_process();

  // sites/hp/stores/id-id/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default4 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/id-id/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default4 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "id-id");
              const customerAPIendpoint = `/id-id/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender4(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/id-id/client/index.ts
  var updatePlaceholderHeightAfterRender4 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop4 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop4);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default4 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender4(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop4);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default4(pageDoc);
          lateLoadScripts_default4(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/id-en/client/index.ts
  init_define_process();

  // sites/hp/stores/id-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default5 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/id-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default5 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "id-en");
              const customerAPIendpoint = `/id-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender5(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/id-en/client/index.ts
  var updatePlaceholderHeightAfterRender5 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop5 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop5);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default5 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender5(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop5);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default5(pageDoc);
          lateLoadScripts_default5(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/th-en/client/index.ts
  init_define_process();

  // sites/hp/stores/th-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default6 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/th-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default6 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "th-en");
              const customerAPIendpoint = `/th-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender6(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/th-en/client/index.ts
  var updatePlaceholderHeightAfterRender6 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop6 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop6);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default6 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender6(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop6);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default6(pageDoc);
          lateLoadScripts_default6(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/th-th/client/index.ts
  init_define_process();

  // sites/hp/stores/th-th/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default7 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/th-th/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default7 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "th-th");
              const customerAPIendpoint = `/th-th/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender7(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/th-th/client/index.ts
  var updatePlaceholderHeightAfterRender7 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop7 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop7);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default7 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender7(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop7);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default7(pageDoc);
          lateLoadScripts_default7(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/my-en/client/index.ts
  init_define_process();

  // sites/hp/stores/my-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default8 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/my-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default8 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "my-en");
              const customerAPIendpoint = `/my-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender8(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/my-en/client/index.ts
  var updatePlaceholderHeightAfterRender8 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop8 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop8);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default8 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender8(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop8);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default8(pageDoc);
          lateLoadScripts_default8(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/nz-en/client/index.ts
  init_define_process();

  // sites/hp/stores/nz-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default9 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/nz-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default9 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "nz-en");
              const customerAPIendpoint = `/nz-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender9(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/nz-en/client/index.ts
  var updatePlaceholderHeightAfterRender9 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop9 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop9);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default9 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender9(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop9);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default9(pageDoc);
          lateLoadScripts_default9(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/ar-es/client/index.ts
  init_define_process();

  // sites/hp/stores/ar-es/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default10 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/ar-es/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default10 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "ar-es");
              const customerAPIendpoint = `/ar-es/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender10(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/ar-es/client/index.ts
  var updatePlaceholderHeightAfterRender10 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop10 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop10);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default10 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender10(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop10);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default10(pageDoc);
          lateLoadScripts_default10(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/co-es/client/index.ts
  init_define_process();

  // sites/hp/stores/co-es/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default11 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/co-es/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default11 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "co-es");
              const customerAPIendpoint = `/co-es/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender11(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/co-es/client/index.ts
  var updatePlaceholderHeightAfterRender11 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop11 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop11);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default11 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender11(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop11);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default11(pageDoc);
          lateLoadScripts_default11(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/pe-es/client/index.ts
  init_define_process();

  // sites/hp/stores/pe-es/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default12 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/pe-es/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default12 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "pe-es");
              const customerAPIendpoint = `/pe-es/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender12(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/pe-es/client/index.ts
  var updatePlaceholderHeightAfterRender12 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop12 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop12);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default12 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender12(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop12);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default12(pageDoc);
          lateLoadScripts_default12(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/au-en/client/index.ts
  init_define_process();

  // sites/hp/stores/au-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default13 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/au-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default13 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "au-en");
              const customerAPIendpoint = `/au-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender13(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/au-en/client/index.ts
  var updatePlaceholderHeightAfterRender13 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop13 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop13);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default13 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender13(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop13);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default13(pageDoc);
          lateLoadScripts_default13(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/mx-es/client/index.ts
  init_define_process();

  // sites/hp/stores/mx-es/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default14 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/mx-es/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default14 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "mx-es");
              const customerAPIendpoint = `/mx-es/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender14(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/mx-es/client/index.ts
  var updatePlaceholderHeightAfterRender14 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop14 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop14);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default14 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender14(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop14);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default14(pageDoc);
          lateLoadScripts_default14(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/in-en/client/index.ts
  init_define_process();

  // sites/hp/stores/in-en/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default15 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/in-en/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default15 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "in-en");
              const customerAPIendpoint = `/in-en/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender15(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/in-en/client/index.ts
  var updatePlaceholderHeightAfterRender15 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop15 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop15);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default15 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender15(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop15);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default15(pageDoc);
          lateLoadScripts_default15(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/kr-ko/client/index.ts
  init_define_process();

  // sites/hp/stores/kr-ko/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default16 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/kr-ko/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default16 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "kr-ko");
              const customerAPIendpoint = `/kr-ko/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender16(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/kr-ko/client/index.ts
  var updatePlaceholderHeightAfterRender16 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop16 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop16);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default16 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender16(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop16);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default16(pageDoc);
          lateLoadScripts_default16(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/cl-es/client/index.ts
  init_define_process();

  // sites/hp/stores/cl-es/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default17 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/cl-es/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default17 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "cl-es");
              const customerAPIendpoint = `/cl-es/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender17(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/cl-es/client/index.ts
  var updatePlaceholderHeightAfterRender17 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop17 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop17);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default17 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender17(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop17);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default17(pageDoc);
          lateLoadScripts_default17(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/stores/br-pt/client/index.ts
  init_define_process();

  // sites/hp/stores/br-pt/client/lateLoadScripts.ts
  init_define_process();
  var lateLoadScripts_default18 = (pageDoc) =&gt; {
    if (pageDoc) {
      console.log("Edgio --&gt; Lateload Scripts - START");
      const boomerangScriptXpath = '//script[contains(text(), "https://s.go-mpulse.net/boomerang/")]';
      const boomerangScript = pageDoc.evaluate(boomerangScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (boomerangScript) {
        appendRawHtmlToHead_default(boomerangScript.outerHTML);
      }
      const hawksearchScriptXpath = '//script[@id="hawksearch-form-script"]';
      const hawksearchScript = pageDoc.evaluate(hawksearchScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      const hawkDataApiInit = hawksearchScript?.getAttribute("data-api-init");
      const hawkElement = document.querySelector("#hawksearch-form-script");
      if (hawksearchScript &amp;&amp; hawkDataApiInit &amp;&amp; hawkElement) {
        hawkElement.setAttribute("data-api-init", hawkDataApiInit);
      } else if (hawksearchScript) {
        appendRawHtmlToHead_default(hawksearchScript.outerHTML);
      }
      const cartDataScriptXpath = '//script[contains(text(), "var dlCurrencyCode =")]';
      const cartDataScript = pageDoc.evaluate(cartDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (cartDataScript) {
        appendRawHtmlToHead_default(cartDataScript.outerHTML);
      }
      const loginDataScriptXpath = '//script[contains(text(), "var customerLoggedIn =")]';
      const loginDataScript = pageDoc.evaluate(loginDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (loginDataScript) {
        appendRawHtmlToHead_default(loginDataScript.outerHTML.replace(/var\s+initDataLayer\s+=\s+{};/i, ""));
      }
      const checkoutDataScriptXpath = '//script[contains(text(), "window.checkout =")]';
      const checkoutDataScript = pageDoc.evaluate(checkoutDataScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (checkoutDataScript) {
        appendRawHtmlToHead_default(checkoutDataScript.outerHTML);
      }
      const calendarScriptXpath = '//script[contains(text(), "mage/calendar")]';
      const calendarScript = pageDoc.evaluate(calendarScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (calendarScript) {
        appendRawHtmlToHead_default(calendarScript.outerHTML);
      }
      const alertScriptXpath = '//script[contains(text(), "var alertM =")]';
      const alertScript = pageDoc.evaluate(alertScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (alertScript) {
        appendRawHtmlToHead_default(alertScript.outerHTML);
      }
      const compareProductScriptXpath = '//script[contains(text(), "var maxProductCount =")]';
      const compareProductScript = pageDoc.evaluate(compareProductScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (compareProductScript &amp;&amp; compareProductScript.outerHTML) {
        const defaultComparedProducts = compareProductScript.outerHTML.match(/var\s+defaultComparedProducts\s*=\s*({[^;]+});/i);
        if (defaultComparedProducts &amp;&amp; defaultComparedProducts[1]) {
          window.defaultComparedProducts = JSON.parse(defaultComparedProducts[1]);
        }
        const defaultConfigData = compareProductScript.outerHTML.match(/var\s+defaultConfigData\s*=\s*({[^;]+});/i);
        if (defaultConfigData &amp;&amp; defaultConfigData[1]) {
          window.defaultConfigData = JSON.parse(defaultConfigData[1]);
        }
        console.log("Edgio --&gt; Lateload Script Compare Updated");
      }
      const beaconScriptXpath = '//script[contains(text(), "NREUM.info=")]';
      const beaconScript = pageDoc.evaluate(beaconScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (beaconScript) {
        appendRawHtmlToHead_default(beaconScript.outerHTML);
      }
      const opttyScriptXpath = '//script[contains(text(), "https://widgets.optty.com/widget-loader.js")]';
      const opttyScript = pageDoc.evaluate(opttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (opttyScript) {
        appendRawHtmlToHead_default(opttyScript.outerHTML);
      }
      const currentPageNameOpttyScriptXpath = '//script[contains(text(), "curpageNameOptty =")]';
      const currentPageNameOpttyScript = pageDoc.evaluate(currentPageNameOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (currentPageNameOpttyScript) {
        appendRawHtmlToHead_default(currentPageNameOpttyScript.outerHTML);
      }
      const productBoxOpttyScriptXpath = '//script[contains(text(), "product-box-widget")]';
      const productBoxOpttyScript = pageDoc.evaluate(productBoxOpttyScriptXpath, pageDoc, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
      if (productBoxOpttyScript) {
        appendRawHtmlToHead_default(productBoxOpttyScript.outerHTML);
      }
      console.log("Edgio --&gt; Lateload Scripts - END");
    } else {
      console.log("Edgio --&gt; No personalised scripts to late load on page");
    }
  };

  // sites/hp/stores/br-pt/client/lateLoadPersonalisedHtml.ts
  init_define_process();
  var lateLoadPersonalisedHtml_default18 = async (pageDoc) =&gt; {
    if (pageDoc) {
      try {
        console.log("Edgio --&gt; Lateload Account - START");
        const accountIconSelector = ".customer-welcome";
        const accountIconEls = document.querySelectorAll(accountIconSelector);
        const parsedAccountIconEls = pageDoc.querySelectorAll(accountIconSelector);
        if (accountIconEls?.length &amp;&amp; parsedAccountIconEls?.length) {
          accountIconEls.forEach((el, idx) =&gt; {
            if (parsedAccountIconEls[idx]) {
              el.innerHTML = parsedAccountIconEls[idx].innerHTML;
            }
          });
        }
        if (typeof window.jQuery !== "undefined") {
          console.log("Edgio --&gt; Lateload Account - Check section");
          const initAccountDropdown = () =&gt; {
            setTimeout(() =&gt; {
              let iconEl = jQuery(".customer-name");
              if (iconEl.length &amp;&amp; iconEl.data("mageInit") &amp;&amp; iconEl.dropdown) {
                console.log("Edgio --&gt; Lateload Account - Initialise section");
                iconEl.dropdown();
                const unsignedLinks = document.querySelectorAll(".unsigned-links a");
                unsignedLinks.forEach((link) =&gt; {
                  link.addEventListener("click", () =&gt; {
                    const destinationUrl = link.getAttribute("data-href");
                    if (destinationUrl) {
                      console.log(`Edgio --&gt; user will be redirected to ${destinationUrl}`);
                      window.location.href = destinationUrl;
                    } else {
                      console.log(`Edgio --&gt; destination path is unknown -&gt; ${destinationUrl}`);
                    }
                  });
                });
                console.log("Edgio --&gt; Lateload Account - Section is ready");
              } else {
                initAccountDropdown();
              }
            }, 500);
          };
          initAccountDropdown();
        }
        const greetMessageEl = document.querySelector(".greet.welcome &gt; span:nth-of-type(1)");
        if (greetMessageEl) {
          console.log("Edgio --&gt; Lateload Account - Found Greeting Message");
          __require(["Magento_Customer/js/view/customer"], function(CustomerModule) {
            const customerComponent = new CustomerModule();
            const customerData = customerComponent.customer();
            greetMessageEl.innerHTML = customerData.firstname || "";
            console.log("Edgio --&gt; Lateload Account - 1st try to update Greeting Message");
          });
          if (!greetMessageEl.innerHTML.trim()) {
            console.log("Edgio --&gt; Lateload Account - 2nd try to update Greeting Message");
            try {
              const privateStorePath = getPrivateStorePath_default(window.location.pathname, "br-pt");
              const customerAPIendpoint = `/br-pt/shop/${privateStorePath ? `${privateStorePath}/` : ""}customer/section/load/?sections=&amp;update_section_id=false`;
              const sectionData = await fetch(customerAPIendpoint);
              console.log("Edgio --&gt; Lateload Account - Trying additional fetch for data");
              const { customer } = await sectionData.json();
              console.log("Edgio --&gt; Lateload Account - Data was fetched", customer);
              if (customer &amp;&amp; customer.firstname) {
                greetMessageEl.innerHTML = customer.firstname;
                console.log("Edgio --&gt; Lateload Account - Message was updated");
              }
            } catch (error) {
              console.error(`Edgio --&gt; Lateload Account - Error during fetching section data: ${error}`);
            }
          }
        }
        console.log("Edgio --&gt; Lateload Account - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Account - Error: ", error);
      }
      try {
        console.log("Edgio --&gt; Lateload HawkSearch - START");
        const edgioSearch = document.querySelector("#edgio-search");
        const hawkSearch = pageDoc.querySelector("#search");
        if (edgioSearch &amp;&amp; hawkSearch) {
          console.log("Edgio --&gt; Lateload HawkSearch - Section was found");
          edgioSearch.outerHTML = hawkSearch.outerHTML;
        }
        console.log("Edgio --&gt; Lateload HawkSearch - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload HawkSearch - Error ", error);
      }
      let omniInitCounter = 0;
      const showOmniChat = () =&gt; {
        setTimeout(() =&gt; {
          if (window &amp;&amp; window.OmnitokChat) {
            console.log("Edgio --&gt; Lateload livechat - Section was found", window.OmnitokChat.livechat);
            window.OmnitokChat.livechat?.showWidget();
            console.log("Edgio --&gt; Lateload livechat - END");
          } else if (omniInitCounter &lt; 3) {
            console.log("Edgio --&gt; Lateload livechat - dont have omni script");
            omniInitCounter += 1;
            showOmniChat();
          }
        }, 500);
      };
      try {
        console.log("Edgio --&gt; Lateload Private store notice - START");
        const edgioPromoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper .global.inside-notice");
        const privateStoreNotice = pageDoc.querySelector(".global.inside-notice.private-notices");
        const headerContainer = document.querySelector(".page-header");
        if (privateStoreNotice &amp;&amp; edgioPromoBannerWrapper &amp;&amp; headerContainer) {
          console.log("Edgio --&gt; Lateload Private store notice - Notice was found");
          edgioPromoBannerWrapper.append(privateStoreNotice);
          window.document.dispatchEvent(new Event("scroll"));
          updatePlaceholderHeightAfterRender18(headerContainer);
        }
        console.log("Edgio --&gt; Lateload Private store notice - END");
      } catch (error) {
        console.error("Edgio --&gt; Lateload Private store notice - Error ", error);
      }
    } else {
      console.log("Edgio --&gt; No account data to late load on page");
    }
  };

  // sites/hp/stores/br-pt/client/index.ts
  var updatePlaceholderHeightAfterRender18 = (el) =&gt; {
    const height = el.getBoundingClientRect().height;
    if (height &gt; 0) {
      const style = document.createElement("style");
      style.id = "edgio-dynamic-promo-style";
      style.innerHTML = `
                .page-header-placeholder {
                  height: ${height}px !important;
                }`;
      console.log("Edgio --&gt; Add placeholder styles", height);
      document.head.appendChild(style);
    }
  };
  var updatePlaceholderHeightOnScrollTop18 = () =&gt; {
    if (window.scrollY &lt; 30) {
      const actualHeight = document.querySelector(".page-header")?.getBoundingClientRect().height;
      const styleEl = document.querySelector("#edgio-dynamic-promo-style");
      const regexHeightFromEdgioStyle = /\.page-header-placeholder\s*\{\s*height:\s*(\d+)px\s*!important;\s*\}/i;
      const matchStyleElHeight = styleEl?.innerHTML.match(regexHeightFromEdgioStyle);
      const styleElHeight = matchStyleElHeight &amp;&amp; matchStyleElHeight[1] || 0;
      console.log("Edgio --&gt; Scroll top with banner", actualHeight, styleElHeight);
      if (styleEl &amp;&amp; actualHeight &amp;&amp; actualHeight &gt; styleElHeight) {
        styleEl.innerHTML = `
              .page-header-placeholder {
                height: ${actualHeight} !important;
              }`;
      } else if (styleEl &amp;&amp; styleElHeight &gt; 105 &amp;&amp; `${styleElHeight}` === `${actualHeight}`) {
        document.removeEventListener("scroll", updatePlaceholderHeightOnScrollTop18);
        console.log("Edgio --&gt; Scroll event listener removed");
      }
    }
  };
  var client_default18 = () =&gt; {
    const handlePromoBanner = () =&gt; {
      const promoBannerWrapper = document.querySelector("#edgio-promo-banner-wrapper");
      const headerContainer = document.querySelector(".page-header");
      if (promoBannerWrapper &amp;&amp; headerContainer) {
        headerContainer.prepend(promoBannerWrapper || "");
        console.log("Edgio --&gt; Added promobanner");
        updatePlaceholderHeightAfterRender18(headerContainer);
        document.addEventListener("scroll", updatePlaceholderHeightOnScrollTop18);
      }
    };
    window.addEventListener("load", handlePromoBanner);
    (async () =&gt; {
      try {
        console.log("Edgio --&gt; Lateloading started...");
        let redirectCount = 0;
        const REDIRECT_LIMIT = 10;
        const fetchUrl = async (url) =&gt; {
          return await fetch(url, {
            redirect: "follow",
            credentials: "include"
          });
        };
        const recursiveFetch = async (url) =&gt; {
          const urlObj = new URL(url);
          urlObj.searchParams.set("no-cache-proxy", "true");
          const res = await fetchUrl(urlObj.toString());
          if (res.redirected &amp;&amp; redirectCount &lt; REDIRECT_LIMIT) {
            redirectCount++;
            return await recursiveFetch(res.url);
          }
          console.log("Edgio --&gt; redirectCount: ", redirectCount);
          return res;
        };
        const response = await recursiveFetch(window.location.toString());
        const pageData = await response.text();
        if (pageData) {
          const flexSliderEl = window.jQuery &amp;&amp; window.jQuery("#carousel-section .hero-carousel");
          const activeSlide = flexSliderEl &amp;&amp; flexSliderEl.find(".flex-active-slide");
          const slidesLength = flexSliderEl &amp;&amp; flexSliderEl.find(".slides li").length;
          if (flexSliderEl &amp;&amp; flexSliderEl.flexslider &amp;&amp; slidesLength === 1) {
            activeSlide.css({
              "min-width": "100vw"
            });
          }
          const domParser = new window.DOMParser();
          const pageDoc = domParser.parseFromString(pageData, "text/html");
          lateLoadPersonalisedHtml_default18(pageDoc);
          lateLoadScripts_default18(pageDoc);
          window.dispatchEvent(new Event("resize"));
        }
        console.log("Edgio --&gt; Lateloading ended...");
      } catch (error) {
        console.log(`Edgio --&gt; ${error}`);
      }
    })();
  };

  // sites/hp/src/browser.ts
  if (typeof window != "undefined") {
    const currentLocale = getLocale_default(window.location.pathname);
    switch (currentLocale) {
      case "sg-en": {
        console.log("Edgio --&gt; Lateload SG-EN website");
        client_default();
        break;
      }
      case "ar-es": {
        console.log("Edgio --&gt; Lateload AR-ES website");
        client_default10();
        break;
      }
      case "co-es": {
        console.log("Edgio --&gt; Lateload CO-ES website");
        client_default11();
        break;
      }
      case "pe-es": {
        console.log("Edgio --&gt; Lateload PE-ES website");
        client_default12();
        break;
      }
      case "th-th": {
        console.log("Edgio --&gt; Lateload TH-TH website");
        client_default7();
        break;
      }
      case "hk-en": {
        console.log("Edgio --&gt; Lateload HK-EN website");
        client_default3();
        break;
      }
      case "id-id": {
        console.log("Edgio --&gt; Lateload ID-ID website");
        client_default4();
        break;
      }
      case "th-en": {
        console.log("Edgio --&gt; Lateload TH-EN website");
        client_default6();
        break;
      }
      case "my-en": {
        console.log("Edgio --&gt; Lateload MY-EN website");
        client_default8();
        break;
      }
      case "nz-en": {
        console.log("Edgio --&gt; Lateload NZ-EN website");
        client_default9();
        break;
      }
      case "au-en": {
        console.log("Edgio --&gt; Lateload AU-EN website");
        client_default13();
        break;
      }
      case "mx-es": {
        console.log("Edgio --&gt; Lateload MX-ES website");
        client_default14();
        break;
      }
      case "cl-es": {
        console.log("Edgio --&gt; Lateload CL-ES website");
        client_default17();
        break;
      }
      case "br-pt": {
        console.log("Edgio --&gt; Lateload BR-PT website");
        client_default18();
        break;
      }
      case "kr-ko": {
        console.log("Edgio --&gt; Lateload KR-KO website");
        client_default16();
        break;
      }
      case "id-en": {
        console.log("Edgio --&gt; Lateload ID-EN website");
        client_default5();
        break;
      }
      case "in-en": {
        console.log("Edgio --&gt; Lateload IN-EN website");
        client_default15();
        break;
      }
      case "hk-zh": {
        console.log("Edgio --&gt; Lateload HK-ZH website");
        client_default2();
        break;
      }
      default: {
        console.error("Edgio --&gt; This page should not be proxied!");
      }
    }
  }
  require_lazysizes();
})();
/*! lazysizes - v5.3.2 */
</pre></body></html>