powered-ad-config 0.1.112 → 0.1.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -240,7 +240,7 @@ var e = (e, t, n) => {
240
240
  }, N = () => {
241
241
  let e = k();
242
242
  if (!e) return;
243
- c(e, "0.1.112");
243
+ c(e, "0.1.113");
244
244
  let t = e.style;
245
245
  e.className &&= "", t.minHeight = "250px", t.marginTop = L.adNodeMarginTop + "px", t.marginBottom = L.adNodeMarginBottom + "px", t.position = "static", t.display = "block", L.zIndex && L.zIndex();
246
246
  }, P = () => {
@@ -437,14 +437,14 @@ var e = (e, t, n) => {
437
437
  path: "/sport",
438
438
  headingText: "Sport",
439
439
  slotId: S
440
- }], D = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]), O = "__poweredAdConfigDynamicHeadingActive", k = "data-pac-dynamicheading-owner", A = "data-pac-reparented", j = (e, t) => {
440
+ }], D = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]), O = "__poweredAdConfigDynamicHeadingActive", k = "data-pac-dynamicheading-owner", A = "data-pac-reparented", j = 1020, M = 760, N = .875, P = .75, F = 2, I = 6, L = -12, R = (e, t) => {
441
441
  if (typeof e == "number" && Number.isFinite(e)) return `${e}px`;
442
442
  if (typeof e == "string") {
443
443
  let n = e.trim();
444
444
  return n ? /^-?\d+(\.\d+)?$/.test(n) ? `${n}px` : n : `${t}px`;
445
445
  }
446
446
  return `${t}px`;
447
- }, M = (e) => {
447
+ }, z = (e) => {
448
448
  if (!e || typeof e != "object") return null;
449
449
  let t = typeof e.headingText == "string" ? e.headingText.trim() : "", n = typeof e.path == "string" ? e.path.trim().toLowerCase() : "", r = typeof e.pathPrefix == "string" ? e.pathPrefix.trim().toLowerCase() : "", i = Array.isArray(e.hostnames) ? e.hostnames.map((e) => String(e).trim().toLowerCase()).filter(Boolean) : [];
450
450
  return !t || !n && !r ? null : {
@@ -454,66 +454,66 @@ var e = (e, t, n) => {
454
454
  slotId: typeof e.slotId == "string" && e.slotId.trim() ? e.slotId.trim() : S,
455
455
  hostnames: i.length ? i : T
456
456
  };
457
- }, N = (e) => {
457
+ }, B = (e) => {
458
458
  if (!Array.isArray(e) || e.length === 0) return E;
459
- let t = e.map(M).filter(Boolean);
459
+ let t = e.map(z).filter(Boolean);
460
460
  return t.length ? t : E;
461
- }, P = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E, responsiveLayout: o = null } = {}) => {
462
- let s = window.frameElement || null;
463
- if (!s) return () => {};
464
- let c = window.parent;
465
- if (!c || c === window) return () => {};
466
- let l = null;
461
+ }, V = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E } = {}) => {
462
+ let o = window.frameElement || null;
463
+ if (!o) return () => {};
464
+ let s = window.parent;
465
+ if (!s || s === window) return () => {};
466
+ let c = null;
467
467
  try {
468
- l = c.document, c.location.href;
468
+ c = s.document, s.location.href;
469
469
  } catch {
470
470
  return () => {};
471
471
  }
472
- let u = c[O];
473
- if (u?.iframe === s && typeof u.cleanup == "function") return u.cleanup;
474
- if (u?.iframe?.isConnected && typeof u?.cleanup == "function") return () => {};
475
- typeof u?.cleanup == "function" && u.cleanup();
476
- let d = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, f = (e, t, n) => {
472
+ let l = s[O];
473
+ if (l?.iframe === o && typeof l.cleanup == "function") return l.cleanup;
474
+ if (l?.iframe?.isConnected && typeof l?.cleanup == "function") return () => {};
475
+ typeof l?.cleanup == "function" && l.cleanup();
476
+ let u = `dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, d = (e, t, n) => {
477
477
  e && e.style[t] !== n && (e.style[t] = n);
478
- }, p = () => {
478
+ }, f = () => {
479
479
  try {
480
480
  let e = window.location.hostname.toLowerCase();
481
481
  return D.has(e) ? !0 : new URLSearchParams(window.location.search).get("keepDynamicHeadingVisible") === "1";
482
482
  } catch {
483
483
  return !1;
484
484
  }
485
- }, m = (e = s.parentElement) => {
485
+ }, p = (e = o.parentElement) => {
486
486
  let t = e;
487
- for (; t && t !== l.body;) {
487
+ for (; t && t !== c.body;) {
488
488
  let e = t.id || "", n = t.getAttribute?.("data-testid") || "", r = t.getAttribute?.("type") || "";
489
489
  if (e.includes("adspot") || n.toLowerCase().includes("ad") || r) return t;
490
490
  t = t.parentElement;
491
491
  }
492
- return s.parentElement;
493
- }, h = () => {
492
+ return o.parentElement;
493
+ }, m = () => {
494
494
  try {
495
- let e = new URL(c.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
496
- return V.find((e) => {
495
+ let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
496
+ return G.find((e) => {
497
497
  let r = e.hostnames.includes(t), i = e.path ? n === e.path : n.startsWith(e.pathPrefix);
498
498
  return r && i;
499
499
  }) || null;
500
500
  } catch {
501
501
  return null;
502
502
  }
503
- }, S = () => {
504
- let e = r(l, "app") || l.getElementById("app") || l, t = r(e, "page-container") || e;
505
- return r(r(t, "container") || t, "main") || r(e, "main") || l.querySelector("#app main") || null;
506
- }, T = (e) => {
503
+ }, h = () => {
504
+ let e = r(c, "app") || c.getElementById("app") || c, t = r(e, "page-container") || e;
505
+ return r(r(t, "container") || t, "main") || r(e, "main") || c.querySelector("#app main") || null;
506
+ }, S = (e) => {
507
507
  if (!e || !e.isConnected) return !1;
508
508
  let t = e.getBoundingClientRect();
509
509
  if (t.width <= 0 || t.height <= 0) return !1;
510
- let n = c.getComputedStyle(e);
510
+ let n = s.getComputedStyle(e);
511
511
  return n.display !== "none" && n.visibility !== "hidden";
512
- }, M = () => {
513
- let e = S(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(l.querySelectorAll(x));
514
- return Array.from(/* @__PURE__ */ new Set([...t, ...n])).filter(T);
515
- }, P = (e) => {
516
- let t = M();
512
+ }, T = () => {
513
+ let e = h(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(x));
514
+ return Array.from(/* @__PURE__ */ new Set([...t, ...n])).filter(S);
515
+ }, z = (e) => {
516
+ let t = T();
517
517
  if (!t.length) return null;
518
518
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
519
519
  if (n) {
@@ -521,96 +521,93 @@ var e = (e, t, n) => {
521
521
  if (e) return e;
522
522
  }
523
523
  return t.find((e) => e.tagName === "H1") || t[0] || null;
524
- }, F = null, I = null;
525
- p();
526
- let L = j(e, C), R = j(t, w), z = j(n, g), B = j(i, _), V = N(a), H = h();
527
- if (!H) return () => {};
528
- let U = m((H.slotId ? l.getElementById(H.slotId) : null) || s.parentElement);
529
- if (!U) return () => {};
530
- let W = U.getAttribute(k);
531
- if (W && W !== d) return () => {};
532
- let ee = {
533
- width: U.style.width,
534
- maxWidth: U.style.maxWidth,
535
- minWidth: U.style.minWidth,
536
- height: U.style.height,
537
- minHeight: U.style.minHeight,
538
- marginTop: U.style.marginTop,
539
- marginBottom: U.style.marginBottom,
540
- marginLeft: U.style.marginLeft,
541
- marginRight: U.style.marginRight,
542
- position: U.style.position,
543
- top: U.style.top,
544
- left: U.style.left,
545
- right: U.style.right,
546
- transform: U.style.transform,
547
- display: U.style.display,
548
- opacity: U.style.opacity,
549
- transition: U.style.transition,
550
- pointerEvents: U.style.pointerEvents,
551
- zIndex: U.style.zIndex,
552
- overflow: U.style.overflow
553
- }, te = {
554
- width: s.style.width,
555
- height: s.style.height,
556
- display: s.style.display,
557
- border: s.style.border,
558
- position: s.style.position,
559
- pointerEvents: s.style.pointerEvents
560
- }, G = [], K = parseFloat(z) || g, q = parseFloat(B) || _, J = parseFloat(L) || 0, ne = parseFloat(R) || 0, Y = () => {
561
- let e = {
562
- width: z,
563
- widthNumeric: K,
564
- height: B,
565
- heightNumeric: q,
566
- offsetTop: J,
567
- offsetLeft: ne
524
+ }, V = null, H = null;
525
+ f();
526
+ let ee = R(e, C), te = R(t, w), U = R(n, g), W = R(i, _), G = B(a), K = m();
527
+ if (!K) return () => {};
528
+ let q = p((K.slotId ? c.getElementById(K.slotId) : null) || o.parentElement);
529
+ if (!q) return () => {};
530
+ let ne = q.getAttribute(k);
531
+ if (ne && ne !== u) return () => {};
532
+ let re = {
533
+ width: q.style.width,
534
+ maxWidth: q.style.maxWidth,
535
+ minWidth: q.style.minWidth,
536
+ height: q.style.height,
537
+ minHeight: q.style.minHeight,
538
+ marginTop: q.style.marginTop,
539
+ marginBottom: q.style.marginBottom,
540
+ marginLeft: q.style.marginLeft,
541
+ marginRight: q.style.marginRight,
542
+ position: q.style.position,
543
+ top: q.style.top,
544
+ left: q.style.left,
545
+ right: q.style.right,
546
+ transform: q.style.transform,
547
+ display: q.style.display,
548
+ opacity: q.style.opacity,
549
+ transition: q.style.transition,
550
+ pointerEvents: q.style.pointerEvents,
551
+ zIndex: q.style.zIndex,
552
+ overflow: q.style.overflow
553
+ }, ie = {
554
+ width: o.style.width,
555
+ height: o.style.height,
556
+ display: o.style.display,
557
+ border: o.style.border,
558
+ position: o.style.position,
559
+ pointerEvents: o.style.pointerEvents
560
+ }, J = [], Y = parseFloat(U) || g, ae = parseFloat(W) || _, oe = parseFloat(ee) || 0, se = parseFloat(te) || 0, ce = () => {
561
+ let e = Number(s.innerWidth) || 0, t = e < M ? P : e < j ? N : 1;
562
+ return {
563
+ scale: t,
564
+ width: R(Y * t, Y),
565
+ widthNumeric: Y * t,
566
+ height: R(ae + (t < 1 ? F : 0), ae),
567
+ heightNumeric: ae + (t < 1 ? F : 0),
568
+ offsetTop: t === P ? oe + L : oe,
569
+ offsetLeft: t < 1 ? se + I : se
568
570
  };
569
- if (typeof o != "function") return e;
570
- try {
571
- let e = o({
572
- viewportWidth: c.innerWidth,
573
- document: l
574
- }) || {}, t = j(e.width, K), n = j(e.height, q), r = (e, t) => {
575
- let n = typeof e == "number" ? e : parseFloat(e);
576
- return Number.isFinite(n) ? n : t;
577
- };
578
- return {
579
- width: t,
580
- widthNumeric: r(t, K),
581
- height: n,
582
- heightNumeric: r(n, q),
583
- offsetTop: r(e.offsetTop, J),
584
- offsetLeft: r(e.offsetLeft, ne)
585
- };
586
- } catch {
587
- return e;
588
- }
589
- }, X = () => {
590
- let e = U.parentElement;
591
- for (; e && e !== l.body;) G.push({
571
+ }, le = () => {
572
+ let e = q.parentElement;
573
+ for (; e && e !== c.body;) J.push({
592
574
  element: e,
593
575
  overflow: e.style.overflow
594
- }), f(e, "overflow", "visible"), e = e.parentElement;
595
- }, re = () => {
596
- f(U, "width", z), f(U, "maxWidth", z), f(U, "minWidth", z), f(U, "height", B), f(U, "minHeight", B), f(U, "display", "block"), f(U, "overflow", "hidden"), f(U, "pointerEvents", "none"), f(U, "zIndex", "0"), U.setAttribute(k, d), f(s, "width", z), f(s, "height", B), f(s, "display", "block"), f(s, "border", "0"), f(s, "position", "relative"), f(s, "pointerEvents", "auto");
597
- }, ie = (e = Y()) => {
598
- let t = U.parentElement;
599
- t && c.getComputedStyle(t).position === "static" && (t.style.position, f(t, "position", "relative")), f(U, "position", "absolute"), f(U, "top", `${e.offsetTop}px`), f(U, "left", `${e.offsetLeft}px`), f(U, "right", "auto"), f(U, "marginTop", "0px"), f(U, "marginBottom", `${v}px`), f(U, "marginLeft", "0px"), f(U, "marginRight", "0px"), f(U, "transform", "");
600
- }, ae = (e = K) => {
601
- let t = S();
576
+ }), d(e, "overflow", "visible"), e = e.parentElement;
577
+ }, X = () => {
578
+ d(q, "width", U), d(q, "maxWidth", U), d(q, "minWidth", U), d(q, "height", W), d(q, "minHeight", W), d(q, "display", "block"), d(q, "overflow", "hidden"), d(q, "pointerEvents", "none"), d(q, "zIndex", "0"), q.setAttribute(k, u), d(o, "width", U), d(o, "height", W), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
579
+ }, ue = (e = ce()) => {
580
+ let t = q.parentElement;
581
+ t && s.getComputedStyle(t).position === "static" && (t.style.position, d(t, "position", "relative")), d(q, "position", "absolute"), d(q, "top", `${e.offsetTop}px`), d(q, "left", `${e.offsetLeft}px`), d(q, "right", "auto"), d(q, "marginTop", "0px"), d(q, "marginBottom", `${v}px`), d(q, "marginLeft", "0px"), d(q, "marginRight", "0px"), d(q, "transform", "");
582
+ }, de = (e = Y) => {
583
+ let t = h();
602
584
  if (!t) return e;
603
585
  let n = t.getBoundingClientRect();
604
586
  if (n.width <= 0) return e;
605
- let i = r(l, "sidebar")?.getBoundingClientRect(), a = i && i.width > 0 && i.height > 0 && i.left >= n.right - 1 && i.top <= n.top + 1, o = l.documentElement?.clientWidth || l.body?.clientWidth || n.width;
587
+ let i = r(c, "sidebar")?.getBoundingClientRect(), a = i && i.width > 0 && i.height > 0 && i.left >= n.right - 1 && i.top <= n.top + 1, o = c.documentElement?.clientWidth || c.body?.clientWidth || n.width;
606
588
  return a ? e : Math.min(e, o);
607
- }, oe = () => {
608
- let e = Y(), t = `${ae(e.widthNumeric)}px`;
609
- f(U, "width", t), f(U, "maxWidth", t), f(U, "minWidth", t), f(U, "height", e.height), f(U, "minHeight", e.height), f(U, "top", `${e.offsetTop}px`), f(U, "left", `${e.offsetLeft}px`), f(s, "width", t), f(s, "height", e.height);
610
- }, se = (e) => {
589
+ }, fe = (e, t) => {
590
+ if (e.scale >= 1) return e.offsetLeft;
591
+ let n = h()?.getBoundingClientRect(), r = c.documentElement?.clientWidth || c.body?.clientWidth || 0;
592
+ if (!n || n.width <= 0 || r <= 0) return e.offsetLeft;
593
+ let i = n.left + e.offsetLeft, a = Math.max(0, r - t);
594
+ return Math.round(Math.min(Math.max(i, 0), a) - n.left);
595
+ }, pe = () => {
596
+ let e = ce(), t = de(e.widthNumeric), n = `${t}px`, r = fe(e, t);
597
+ d(q, "width", n), d(q, "maxWidth", n), d(q, "minWidth", n), d(q, "height", e.height), d(q, "minHeight", e.height), d(q, "top", `${e.offsetTop}px`), d(q, "left", `${r}px`), d(o, "width", n), d(o, "height", e.height);
598
+ }, me = () => {
599
+ try {
600
+ let e = o.contentDocument?.getElementById("unit");
601
+ if (!e) return !1;
602
+ let t = ce().scale;
603
+ return t === 1 ? (e.style.removeProperty("transform"), e.style.removeProperty("transform-origin")) : (d(e, "transform", `scale(${t})`), d(e, "transformOrigin", "left bottom")), !0;
604
+ } catch {
605
+ return !1;
606
+ }
607
+ }, he = (e) => {
611
608
  let t = null;
612
609
  try {
613
- let e = s.contentDocument;
610
+ let e = o.contentDocument;
614
611
  if (!e) return !1;
615
612
  let n = e.getElementById("unitContainer");
616
613
  if (!n) return !1;
@@ -623,54 +620,56 @@ var e = (e, t, n) => {
623
620
  return !1;
624
621
  }
625
622
  if (!t) return !1;
626
- s.setAttribute(A, "1");
623
+ o.setAttribute(A, "1");
627
624
  try {
628
- e.parentNode?.insertBefore(U, e);
625
+ e.parentNode?.insertBefore(q, e);
629
626
  } catch {
630
- return s.removeAttribute(A), !1;
627
+ return o.removeAttribute(A), !1;
631
628
  }
632
- X(), re(), ie();
629
+ le(), X(), ue(), xe = () => me(), o.addEventListener("load", xe);
633
630
  try {
634
- s.srcdoc = t;
631
+ o.srcdoc = t;
635
632
  } catch {
636
633
  return !1;
637
634
  }
638
- return oe(), pe = () => oe(), c.addEventListener("resize", pe), !0;
639
- }, ce = () => {
640
- f(U, "position", "fixed"), f(U, "marginTop", "0px"), f(U, "marginBottom", "0px"), f(U, "marginLeft", "0px"), f(U, "marginRight", "0px"), f(U, "transform", "");
635
+ return pe(), $ = () => {
636
+ pe(), me();
637
+ }, s.addEventListener("resize", $), !0;
641
638
  }, Z = () => {
642
- f(U, "display", "none");
643
- }, le = () => {
644
- f(U, "display", "block"), f(U, "overflow", "hidden");
645
- }, Q = null, ue = () => {
646
- if ((!Q || !Q.isConnected) && (Q = P(H.headingText)), !Q) return;
647
- let e = Q.getBoundingClientRect(), t = e.top - q - v + J, n = e.left + ne;
648
- f(U, "top", `${t}px`), f(U, "left", `${n}px`), f(U, "right", "auto");
649
- }, de = null, fe = null, pe = null, $ = !1, me = (e = 12) => {
650
- if (Q = P(H.headingText), !Q) {
651
- e > 1 && (I = c.setTimeout(() => me(e - 1), 250));
639
+ d(q, "position", "fixed"), d(q, "marginTop", "0px"), d(q, "marginBottom", "0px"), d(q, "marginLeft", "0px"), d(q, "marginRight", "0px"), d(q, "transform", "");
640
+ }, ge = () => {
641
+ d(q, "display", "none");
642
+ }, _e = () => {
643
+ d(q, "display", "block"), d(q, "overflow", "hidden");
644
+ }, Q = null, ve = () => {
645
+ if ((!Q || !Q.isConnected) && (Q = z(K.headingText)), !Q) return;
646
+ let e = Q.getBoundingClientRect(), t = e.top - ae - v + oe, n = e.left + se;
647
+ d(q, "top", `${t}px`), d(q, "left", `${n}px`), d(q, "right", "auto");
648
+ }, ye = null, be = null, $ = null, xe = null, Se = !1, Ce = (e = 12) => {
649
+ if (Q = z(K.headingText), !Q) {
650
+ e > 1 && (H = s.setTimeout(() => Ce(e - 1), 250));
652
651
  return;
653
652
  }
654
- se(Q) || ($ = !0, X(), re(), ce(), ue(), de = () => ue(), fe = () => ue(), c.addEventListener("scroll", de, { passive: !0 }), c.addEventListener("resize", fe));
653
+ he(Q) || (Se = !0, le(), X(), Z(), ve(), ye = () => ve(), be = () => ve(), s.addEventListener("scroll", ye, { passive: !0 }), s.addEventListener("resize", be));
655
654
  };
656
- me();
657
- let he = () => {
658
- I &&= (c.clearTimeout(I), null), F &&= (c.clearTimeout(F), null), de &&= (c.removeEventListener("scroll", de), null), fe &&= (c.removeEventListener("resize", fe), null), pe &&= (c.removeEventListener("resize", pe), null), U.getAttribute(k) === d && U.removeAttribute(k), $ && (Object.entries(ee).forEach(([e, t]) => {
659
- U.style[e] = t;
660
- }), Object.entries(te).forEach(([e, t]) => {
661
- s.style[e] = t;
662
- }), G.forEach(({ element: e, overflow: t }) => {
655
+ Ce();
656
+ let we = () => {
657
+ H &&= (s.clearTimeout(H), null), V &&= (s.clearTimeout(V), null), ye &&= (s.removeEventListener("scroll", ye), null), be &&= (s.removeEventListener("resize", be), null), $ &&= (s.removeEventListener("resize", $), null), xe &&= (o.removeEventListener("load", xe), null), q.getAttribute(k) === u && q.removeAttribute(k), Se && (Object.entries(re).forEach(([e, t]) => {
658
+ q.style[e] = t;
659
+ }), Object.entries(ie).forEach(([e, t]) => {
660
+ o.style[e] = t;
661
+ }), J.forEach(({ element: e, overflow: t }) => {
663
662
  e.style.overflow = t;
664
- })), c[O]?.instanceId === d && delete c[O];
663
+ })), s[O]?.instanceId === u && delete s[O];
665
664
  };
666
- return c[O] = {
667
- instanceId: d,
668
- iframe: s,
669
- cleanup: he,
670
- show: le,
671
- hide: Z
672
- }, he;
673
- }, F = (e, t, n) => {
665
+ return s[O] = {
666
+ instanceId: u,
667
+ iframe: o,
668
+ cleanup: we,
669
+ show: _e,
670
+ hide: ge
671
+ }, we;
672
+ }, H = (e, t, n) => {
674
673
  let r = window.frameElement ? window.frameElement : null;
675
674
  if (!r) return () => {};
676
675
  let i = window.parent;
@@ -908,11 +907,11 @@ var e = (e, t, n) => {
908
907
  return p(), () => {
909
908
  i.removeEventListener("scroll", y), S &&= (clearTimeout(S), null);
910
909
  };
911
- }, I = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
910
+ }, ee = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
912
911
  if (e === 0 || e === 1) return e;
913
912
  let t = 2 * Math.PI / 3;
914
913
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
915
- }), L = (e = {}) => {
914
+ }), te = (e = {}) => {
916
915
  let t = {
917
916
  adScrollHeight: "300vh",
918
917
  bandHeight: 24,
@@ -935,7 +934,7 @@ var e = (e, t, n) => {
935
934
  snapOverlap: 2,
936
935
  stretchOverlap: 20,
937
936
  snapDuration: .9,
938
- snapEase: I,
937
+ snapEase: ee,
939
938
  onEnter: null,
940
939
  onExit: null,
941
940
  onProgress: null,
@@ -979,7 +978,7 @@ var e = (e, t, n) => {
979
978
  };
980
979
  (() => {
981
980
  let e = a.style;
982
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.112"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
981
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.113"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
983
982
  let o = a.parentElement;
984
983
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
985
984
  let t = r.getComputedStyle(o), n = !1;
@@ -1084,7 +1083,7 @@ var e = (e, t, n) => {
1084
1083
  e.style[t] = n || "";
1085
1084
  });
1086
1085
  };
1087
- }, R = (e = {}) => {
1086
+ }, U = (e = {}) => {
1088
1087
  let t = {
1089
1088
  adaptToWidth: "100%",
1090
1089
  maxWidth: "400px",
@@ -1117,7 +1116,7 @@ var e = (e, t, n) => {
1117
1116
  let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
1118
1117
  return (() => {
1119
1118
  let e = a.style;
1120
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.112"), c) {
1119
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.113"), c) {
1121
1120
  let e = c.style;
1122
1121
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1123
1122
  }
@@ -1132,7 +1131,7 @@ var e = (e, t, n) => {
1132
1131
  })(), () => {
1133
1132
  f &&= (f.disconnect(), null), o ? a.setAttribute("style", o) : a.removeAttribute("style"), s ? n.setAttribute("style", s) : n.removeAttribute("style"), c && (l ? c.setAttribute("style", l) : c.removeAttribute("style")), u && d && d !== "0px" && (u.style.paddingTop = d);
1134
1133
  };
1135
- }, z = (e = {}) => {
1134
+ }, W = (e = {}) => {
1136
1135
  let t = {
1137
1136
  billboardHeight: 150,
1138
1137
  sideStripWidth: 10,
@@ -1310,7 +1309,7 @@ var e = (e, t, n) => {
1310
1309
  })(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, k = O ? O.getAttribute("style") : null, A = i.querySelector("footer"), j = A ? A.getAttribute("style") : null, M = o ? Array.from(o.children).map((e) => ({
1311
1310
  el: e,
1312
1311
  orig: e.getAttribute("style")
1313
- })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, U = null, W = null, ee = null, te = null, G = null, K = null, q = [], J = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ne = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, Y = !!(t.sticky && (J || ne)), X = "pending", re = 0, ie = 0, ae = null, oe = null, se = null, ce = null, Z = null, le = null, Q = [], ue = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, de = {
1312
+ })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, ee = null, te = null, U = null, W = null, G = null, K = null, q = [], ne = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, re = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, ie = !!(t.sticky && (ne || re)), J = "pending", Y = 0, ae = 0, oe = null, se = null, ce = null, le = null, X = null, ue = null, de = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, pe = {
1314
1313
  FLOW_SYNCED_BODY: "flowSyncedBody",
1315
1314
  SPLIT_IN_FLOW: "splitInFlow",
1316
1315
  IN_FLOW: "inFlow"
@@ -1324,24 +1323,24 @@ var e = (e, t, n) => {
1324
1323
  }
1325
1324
  return null;
1326
1325
  })(), K = G ? G.getAttribute("style") : null;
1327
- let fe = !!(o && f !== u.afr && (G || p)), pe = f === u.afr || x ? de.FLOW_SYNCED_BODY : fe ? de.SPLIT_IN_FLOW : de.IN_FLOW, $ = pe === de.FLOW_SYNCED_BODY, me = (e) => {
1328
- if (!e || e === W || e === y || e === a) return !1;
1326
+ let me = !!(o && f !== u.afr && (G || p)), he = f === u.afr || x ? pe.FLOW_SYNCED_BODY : me ? pe.SPLIT_IN_FLOW : pe.IN_FLOW, Z = he === pe.FLOW_SYNCED_BODY, ge = (e) => {
1327
+ if (!e || e === te || e === y || e === a) return !1;
1329
1328
  let t = e.firstElementChild;
1330
1329
  if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
1331
1330
  let n = r.getComputedStyle(e);
1332
1331
  return n.position === "fixed" || n.position === "sticky";
1333
- }, he = (e) => {
1332
+ }, _e = (e) => {
1334
1333
  !e?.parentElement || q.some((t) => t.shell === e) || (q.push({
1335
1334
  shell: e,
1336
1335
  parent: e.parentElement,
1337
1336
  nextSibling: e.nextSibling
1338
1337
  }), e.remove());
1339
- }, ge = () => {
1338
+ }, Q = () => {
1340
1339
  for (let e of i.querySelectorAll(".container")) {
1341
1340
  let t = e.parentElement;
1342
- me(t) && he(t);
1341
+ ge(t) && _e(t);
1343
1342
  }
1344
- }, _e = (e) => {
1343
+ }, ve = (e) => {
1345
1344
  let t = e?.parentElement;
1346
1345
  for (; t && t !== i.body && t !== i.documentElement;) {
1347
1346
  let e = r.getComputedStyle(t);
@@ -1350,10 +1349,10 @@ var e = (e, t, n) => {
1350
1349
  orig: t.getAttribute("style")
1351
1350
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1352
1351
  }
1353
- }, ve = () => {
1352
+ }, ye = () => {
1354
1353
  let e = i.createElement("div");
1355
1354
  return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
1356
- }, ye = () => {
1355
+ }, be = () => {
1357
1356
  if (!s || f !== u.wwos) return null;
1358
1357
  let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
1359
1358
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
@@ -1366,7 +1365,7 @@ var e = (e, t, n) => {
1366
1365
  };
1367
1366
  }).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
1368
1367
  return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
1369
- }, be = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1368
+ }, $ = () => B || a, xe = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
1370
1369
  let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
1371
1370
  return {
1372
1371
  el: e,
@@ -1379,7 +1378,7 @@ var e = (e, t, n) => {
1379
1378
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1380
1379
  }, Ce = () => {
1381
1380
  let e = Se();
1382
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, ue || t.stickyTop);
1381
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
1383
1382
  }, we = () => {
1384
1383
  let e = Se();
1385
1384
  return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
@@ -1391,92 +1390,92 @@ var e = (e, t, n) => {
1391
1390
  remainingMs: Math.max(0, Math.round(n))
1392
1391
  }, "*");
1393
1392
  }, Ee = (e) => {
1394
- !e || Q.some((t) => t.el === e) || Q.push({
1393
+ !e || de.some((t) => t.el === e) || de.push({
1395
1394
  el: e,
1396
1395
  value: e.style.getPropertyValue("z-index"),
1397
1396
  priority: e.style.getPropertyPriority("z-index")
1398
1397
  });
1399
1398
  }, De = (e) => {
1400
- let t = new Set([be()].filter(Boolean));
1399
+ let t = new Set([$()].filter(Boolean));
1401
1400
  if (f === u.afr || G || p) {
1402
1401
  [
1403
1402
  a,
1404
1403
  y,
1405
1404
  c
1406
1405
  ].filter(Boolean).forEach((e) => t.add(e));
1407
- let e = be()?.parentElement;
1406
+ let e = $()?.parentElement;
1408
1407
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1409
1408
  }
1410
1409
  for (let n of t) Ee(n), n.style.setProperty("z-index", String(e), "important");
1411
- }, Oe = () => $ && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || be(), ke = () => {
1412
- if (!$ || !R) return;
1410
+ }, Oe = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1411
+ if (!Z || !R) return;
1413
1412
  let e = R.style;
1414
1413
  e.left = "0px", e.width = "100vw";
1415
1414
  }, Ae = () => {
1416
- if (!$ || !R || X === "active") return;
1415
+ if (!Z || !R || J === "active") return;
1417
1416
  let e = Oe();
1418
1417
  if (!e) return;
1419
1418
  let t = e.getBoundingClientRect(), n = R.style;
1420
1419
  n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, ke(), n.setProperty("z-index", "6", "important"), R.removeAttribute("data-mf-sticky-active");
1421
1420
  }, je = () => {
1422
- $ && (Ae(), se && r.cancelAnimationFrame(se), se = r.requestAnimationFrame(() => {
1423
- se = null, Ae();
1424
- }), ce && r.clearTimeout(ce), ce = r.setTimeout(() => {
1421
+ Z && (Ae(), ce && r.cancelAnimationFrame(ce), ce = r.requestAnimationFrame(() => {
1425
1422
  ce = null, Ae();
1423
+ }), le && r.clearTimeout(le), le = r.setTimeout(() => {
1424
+ le = null, Ae();
1426
1425
  }, 350));
1427
1426
  }, Me = () => {
1428
- for (let e = Q.length - 1; e >= 0; --e) {
1429
- let { el: t, value: n, priority: r } = Q[e];
1427
+ for (let e = de.length - 1; e >= 0; --e) {
1428
+ let { el: t, value: n, priority: r } = de[e];
1430
1429
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1431
1430
  }
1432
- Q.length = 0;
1431
+ de.length = 0;
1433
1432
  }, Ne = () => {
1434
1433
  if (!R) return;
1435
- _e(be());
1436
- let e = be().getBoundingClientRect(), t = we();
1434
+ ve($());
1435
+ let e = $().getBoundingClientRect(), t = we();
1437
1436
  De(t);
1438
1437
  let n = R.style;
1439
- n.position = "fixed", n.top = `${Ce()}px`, $ ? ke() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1438
+ n.position = "fixed", n.top = `${Ce()}px`, Z ? ke() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), R.setAttribute("data-mf-sticky-active", "");
1440
1439
  }, Pe = () => {
1441
1440
  if (!R) return;
1442
- if ($) {
1441
+ if (Z) {
1443
1442
  je(), Me();
1444
1443
  return;
1445
1444
  }
1446
1445
  let e = R.style;
1447
1446
  e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Me(), R.removeAttribute("data-mf-sticky-active");
1448
1447
  }, Fe = () => {
1449
- oe &&= (r.cancelAnimationFrame(oe), null);
1448
+ se &&= (r.cancelAnimationFrame(se), null);
1450
1449
  }, Ie = () => {
1451
- if (ae === null) {
1452
- let e = be().getBoundingClientRect();
1453
- ae = Math.max(0, r.scrollY + e.top - Ce());
1450
+ if (oe === null) {
1451
+ let e = $().getBoundingClientRect();
1452
+ oe = Math.max(0, r.scrollY + e.top - Ce());
1454
1453
  }
1455
- return ae;
1456
- }, Le = () => ie + (X === "active" ? Math.max(0, r.performance.now() - re) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1457
- let e = J ? Le() / t.stickyDurationMs : 0, n = ne ? Re() / t.stickyScrollDistance : 0;
1454
+ return oe;
1455
+ }, Le = () => ae + (J === "active" ? Math.max(0, r.performance.now() - Y) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1456
+ let e = ne ? Le() / t.stickyDurationMs : 0, n = re ? Re() / t.stickyScrollDistance : 0;
1458
1457
  return Math.max(e, n);
1459
- }, Be = () => J ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1460
- X === "active" && (ie = Le(), X = "paused", Fe(), Pe(), Te({
1458
+ }, Be = () => ne ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1459
+ J === "active" && (ae = Le(), J = "paused", Fe(), Pe(), Te({
1461
1460
  active: !1,
1462
1461
  progress: ze(),
1463
1462
  remainingMs: Be()
1464
1463
  }));
1465
1464
  }, Ue = () => {
1466
- X !== "paused" || Ve() || (X = "active", re = r.performance.now(), Ne(), Ge());
1465
+ J !== "paused" || Ve() || (J = "active", Y = r.performance.now(), Ne(), Ge());
1467
1466
  }, We = () => {
1468
- (X === "active" || X === "paused") && (X === "active" && (ie = Le()), X = "released", Fe(), Pe(), Te({
1467
+ (J === "active" || J === "paused") && (J === "active" && (ae = Le()), J = "released", Fe(), Pe(), Te({
1469
1468
  active: !1,
1470
1469
  progress: 1,
1471
1470
  remainingMs: 0
1472
1471
  }));
1473
1472
  }, Ge = () => {
1474
- if (X !== "active") return;
1473
+ if (J !== "active") return;
1475
1474
  if (Ve()) {
1476
1475
  He();
1477
1476
  return;
1478
1477
  }
1479
- let e = Le(), n = Re(), i = J ? e / t.stickyDurationMs : 0, a = ne ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = J ? t.stickyDurationMs - e : 0;
1478
+ let e = Le(), n = Re(), i = ne ? e / t.stickyDurationMs : 0, a = re ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = ne ? t.stickyDurationMs - e : 0;
1480
1479
  if (Ne(), Te({
1481
1480
  active: !0,
1482
1481
  progress: o,
@@ -1485,21 +1484,21 @@ var e = (e, t, n) => {
1485
1484
  We();
1486
1485
  return;
1487
1486
  }
1488
- oe = r.requestAnimationFrame(Ge);
1487
+ se = r.requestAnimationFrame(Ge);
1489
1488
  }, Ke = () => {
1490
- if (!Y || X !== "pending" || !R) return;
1491
- let e = be().getBoundingClientRect();
1492
- ae = Math.max(0, r.scrollY + e.top - Ce()), ie = 0, X = "active", re = r.performance.now(), Ne(), Ge();
1489
+ if (!ie || J !== "pending" || !R) return;
1490
+ let e = $().getBoundingClientRect();
1491
+ oe = Math.max(0, r.scrollY + e.top - Ce()), ae = 0, J = "active", Y = r.performance.now(), Ne(), Ge();
1493
1492
  }, qe = () => {
1494
- !Y || X !== "pending" || !R || r.scrollY <= 0 || be().getBoundingClientRect().top <= Ce() && Ke();
1493
+ !ie || J !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Ke();
1495
1494
  }, Je = () => {
1496
- X === "pending" ? qe() : X === "active" && Ve() ? He() : X === "paused" && Ue(), X !== "active" && je();
1495
+ J === "pending" ? qe() : J === "active" && Ve() ? He() : J === "paused" && Ue(), J !== "active" && je();
1497
1496
  }, Ye = () => {
1498
- Je(), le && r.cancelAnimationFrame(le), le = r.requestAnimationFrame(() => {
1499
- le = null, Je();
1497
+ Je(), ue && r.cancelAnimationFrame(ue), ue = r.requestAnimationFrame(() => {
1498
+ ue = null, Je();
1500
1499
  });
1501
1500
  }, Xe = () => {
1502
- ge();
1501
+ Q();
1503
1502
  let e = n.parentElement;
1504
1503
  for (; e && e !== i.body && e !== i.documentElement;) {
1505
1504
  let t = r.getComputedStyle(e);
@@ -1520,7 +1519,7 @@ var e = (e, t, n) => {
1520
1519
  } catch (e) {
1521
1520
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1522
1521
  }
1523
- if (a.setAttribute("poweredAC", "0.1.112"), _) {
1522
+ if (a.setAttribute("poweredAC", "0.1.113"), _) {
1524
1523
  let e = _.style;
1525
1524
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1526
1525
  }
@@ -1781,34 +1780,34 @@ var e = (e, t, n) => {
1781
1780
  padding: 0 !important;
1782
1781
  }
1783
1782
  `, i.head.appendChild(L), f.setup && f.setup(i, a), f === u.wwos) {
1784
- let e = ye();
1783
+ let e = be();
1785
1784
  e && (N = e.el, P = N.getAttribute("style"), F = e.list, I = F ? F.getAttribute("style") : null, N.style.marginLeft = "10px", N.style.marginRight = "10px", N.style.width = "calc(100% - 20px)", F && (F.style.width = "100%"));
1786
1785
  }
1787
- if (pe === de.SPLIT_IN_FLOW) {
1788
- if (G && (W = c || y), l && l !== "about:blank") {
1786
+ if (he === pe.SPLIT_IN_FLOW) {
1787
+ if (G && (te = c || y), l && l !== "about:blank") {
1789
1788
  let e = new URL(l);
1790
1789
  e.searchParams.set("mfRole", "wallpaper"), z = i.createElement("iframe"), z.src = e.href, z.setAttribute("data-mf-wallpaper-iframe", ""), z.setAttribute("scrolling", "no"), z.setAttribute("frameborder", "0");
1791
1790
  let n = z.style;
1792
1791
  n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(z, i.body.firstChild);
1793
1792
  }
1794
- n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ve(), o.parentElement.insertBefore(B, o), G ? (G.style.position = "static", G.style.inset = "auto", G.style.height = "0", G.style.minHeight = "0", G.style.maxHeight = "0", G.style.overflow = "hidden", G.style.backgroundColor = "transparent", G.style.boxShadow = "none", G.style.border = "0", G.style.outline = "0", G.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), p.height = "0", p.minHeight = "0", p.width = "0", p.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1793
+ n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", B = ye(), o.parentElement.insertBefore(B, o), G ? (G.style.position = "static", G.style.inset = "auto", G.style.height = "0", G.style.minHeight = "0", G.style.maxHeight = "0", G.style.overflow = "hidden", G.style.backgroundColor = "transparent", G.style.boxShadow = "none", G.style.border = "0", G.style.outline = "0", G.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), p.height = "0", p.minHeight = "0", p.width = "0", p.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
1795
1794
  for (let { el: e } of M) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1796
- E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), ge();
1795
+ E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), A && (A.style.marginLeft = "14px", A.style.marginRight = "14px", A.style.position = "relative", A.style.zIndex = "2"), Q();
1797
1796
  }
1798
- B || (B = ve(), a.appendChild(B));
1797
+ B || (B = ye(), a.appendChild(B));
1799
1798
  }, Ze = null, Qe = null, $e = !1, et = () => {
1800
1799
  let e = r.innerWidth, n = r.innerHeight;
1801
1800
  if (e > n) {
1802
1801
  let r = n / e, i = Math.round(t.billboardHeight * r);
1803
1802
  a.style.height = i + "px", a.style.minHeight = i + "px", B && (B.style.height = i + "px", B.style.minHeight = i + "px", B.style.maxHeight = i + "px"), R && (R.style.height = i + "px");
1804
1803
  } else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", B && (B.style.height = t.billboardHeight + "px", B.style.minHeight = t.billboardHeight + "px", B.style.maxHeight = t.billboardHeight + "px"), R && (R.style.height = t.billboardHeight + "px");
1805
- X === "active" ? Ne() : je();
1804
+ J === "active" ? Ne() : je();
1806
1805
  };
1807
1806
  if (Xe(), l && l !== "about:blank") try {
1808
1807
  let e = new URL(l);
1809
1808
  e.searchParams.set("mfRole", "billboard"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-billboard-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
1810
1809
  let n = R.style;
1811
- n.position = $ ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = $ ? "6" : "1", $ ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), Y && (Z = Ye, r.addEventListener("scroll", Z, { passive: !0 }), i.addEventListener("scroll", Z, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", Z, { passive: !0 }));
1810
+ n.position = Z ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = Z ? "6" : "1", Z ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), ie && (X = Ye, r.addEventListener("scroll", X, { passive: !0 }), i.addEventListener("scroll", X, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", X, { passive: !0 }));
1812
1811
  } catch (e) {
1813
1812
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1814
1813
  }
@@ -1832,7 +1831,7 @@ var e = (e, t, n) => {
1832
1831
  });
1833
1832
  let tt = () => {
1834
1833
  if (!$e) {
1835
- $e = !0, Qe &&= (window.removeEventListener("pagehide", Qe), window.removeEventListener("beforeunload", Qe), null), Ze &&= (r.removeEventListener("resize", Ze), null), Z &&= (r.removeEventListener("scroll", Z), i.removeEventListener("scroll", Z), i.scrollingElement?.removeEventListener("scroll", Z), null), le &&= (r.cancelAnimationFrame(le), null), Fe(), se &&= (r.cancelAnimationFrame(se), null), ce &&= (r.clearTimeout(ce), null), Te({
1834
+ $e = !0, Qe &&= (window.removeEventListener("pagehide", Qe), window.removeEventListener("beforeunload", Qe), null), Ze &&= (r.removeEventListener("resize", Ze), null), X &&= (r.removeEventListener("scroll", X), i.removeEventListener("scroll", X), i.scrollingElement?.removeEventListener("scroll", X), null), ue &&= (r.cancelAnimationFrame(ue), null), Fe(), ce &&= (r.cancelAnimationFrame(ce), null), le &&= (r.clearTimeout(le), null), Te({
1836
1835
  active: !1,
1837
1836
  progress: 1,
1838
1837
  remainingMs: 0
@@ -1844,15 +1843,15 @@ var e = (e, t, n) => {
1844
1843
  let { shell: t, parent: n, nextSibling: r } = q[e];
1845
1844
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1846
1845
  }
1847
- q.length = 0, H && (U && U.parentNode === H ? H.insertBefore(n, U) : H.appendChild(n), H = null, U = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1846
+ q.length = 0, H && (ee && ee.parentNode === H ? H.insertBefore(n, ee) : H.appendChild(n), H = null, ee = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1848
1847
  for (let { el: e, orig: t } of V) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1849
- V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), W &&= (ee && (te && te.parentNode === ee ? ee.insertBefore(W, te) : ee.appendChild(W), ee = null, te = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), G && (K ? G.setAttribute("style", K) : G.removeAttribute("style"), G = null, K = null);
1848
+ V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), te &&= (U && (W && W.parentNode === U ? U.insertBefore(te, W) : U.appendChild(te), U = null, W = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), G && (K ? G.setAttribute("style", K) : G.removeAttribute("style"), G = null, K = null);
1850
1849
  for (let { el: e, orig: t } of M) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1851
1850
  F && (I ? F.setAttribute("style", I) : F.removeAttribute("style"), F = null, I = null), N && (P ? N.setAttribute("style", P) : N.removeAttribute("style"), N = null, P = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (k ? O.setAttribute("style", k) : O.removeAttribute("style")), A && (j ? A.setAttribute("style", j) : A.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
1852
1851
  }
1853
1852
  };
1854
1853
  return tt;
1855
- }, B = (e = {}) => {
1854
+ }, G = (e = {}) => {
1856
1855
  let t = {
1857
1856
  expandedHeight: 180,
1858
1857
  collapsedHeight: 50,
@@ -1975,9 +1974,9 @@ var e = (e, t, n) => {
1975
1974
  paddingTop: e.style.getPropertyValue("padding-top"),
1976
1975
  paddingTopPriority: e.style.getPropertyPriority("padding-top")
1977
1976
  });
1978
- }, U = (e) => {
1977
+ }, ee = (e) => {
1979
1978
  for (let t of B()) H(t), t.style.setProperty("padding-bottom", `${e}px`, "important"), V > 0 && t.style.setProperty("padding-top", `${V}px`, "important");
1980
- }, W = () => w || E, ee = () => W()?.contentWindow || null, te = (e) => {
1979
+ }, te = () => w || E, U = () => te()?.contentWindow || null, W = (e) => {
1981
1980
  if (!e) return;
1982
1981
  let n = e.style;
1983
1982
  n.display = "block", n.width = "100%", n.height = `${t.expandedHeight}px`, n.minHeight = `${t.expandedHeight}px`, n.maxHeight = `${t.expandedHeight}px`, n.border = "none", n.margin = "0", n.padding = "0", n.position = "absolute", n.left = "0", n.right = "0", n.bottom = "0", n.top = "auto", n.maxWidth = "none", n.overflow = "hidden", n.background = "transparent", e.setAttribute("height", String(t.expandedHeight));
@@ -1991,12 +1990,12 @@ var e = (e, t, n) => {
1991
1990
  e.visibility = "hidden", e.pointerEvents = "none", e.width = "0", e.height = "0", e.minHeight = "0", e.maxHeight = "0", e.position = "absolute", e.overflow = "hidden", e.border = "none", e.margin = "0", e.padding = "0";
1992
1991
  }, q = () => {
1993
1992
  P || (P = !0, t.onAdapt && t.onAdapt());
1994
- }, J = (e, n = !1) => {
1993
+ }, ne = (e, n = !1) => {
1995
1994
  if (!C) return;
1996
1995
  k = e;
1997
1996
  let r = I();
1998
- n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, te(W()), U(e);
1999
- }, ne = (e) => {
1997
+ n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, W(te()), ee(e);
1998
+ }, re = (e) => {
2000
1999
  let n = e.progress ?? L(), r = {
2001
2000
  type: "bottomscroller:progress",
2002
2001
  phase: e.phase ?? z(n),
@@ -2005,23 +2004,23 @@ var e = (e, t, n) => {
2005
2004
  height: k,
2006
2005
  active: n > 0 && n < 1,
2007
2006
  ...e
2008
- }, i = ee();
2007
+ }, i = U();
2009
2008
  i && i.postMessage(r, "*"), typeof window < "u" && window.postMessage && window.postMessage(r, "*"), typeof t.onProgress == "function" && t.onProgress(r);
2010
- }, Y = ({ animate: e = !1 } = {}) => {
2009
+ }, ie = ({ animate: e = !1 } = {}) => {
2011
2010
  let t = L(), n = R(t);
2012
- J(n, e), ne({
2011
+ ne(n, e), re({
2013
2012
  phase: z(t),
2014
2013
  progress: t,
2015
2014
  remainingMs: 0,
2016
2015
  active: t > 0 && t < 1
2017
2016
  });
2018
- }, X = () => {
2019
- A = !0, Y({ animate: !0 });
2020
- }, re = () => {
2021
- Y(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2022
- M = null, Y();
2017
+ }, J = () => {
2018
+ A = !0, ie({ animate: !0 });
2019
+ }, Y = () => {
2020
+ ie(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2021
+ M = null, ie();
2023
2022
  });
2024
- }, ie = () => {
2023
+ }, ae = () => {
2025
2024
  let e = l.parentElement;
2026
2025
  for (; e && e !== c.body && e !== c.documentElement;) {
2027
2026
  let t = s.getComputedStyle(e);
@@ -2033,7 +2032,7 @@ var e = (e, t, n) => {
2033
2032
  orig: e.getAttribute("style")
2034
2033
  }), e.style.overflow = "visible"), e = e.parentElement;
2035
2034
  }
2036
- }, ae = () => {
2035
+ }, oe = () => {
2037
2036
  if (!(!a || a === "about:blank")) try {
2038
2037
  let e = new URL(a, s.location.href);
2039
2038
  e.searchParams.set(n, i), T = c.createElement("iframe"), T.src = e.href, T.setAttribute("data-bottomscroller-banner-iframe", ""), T.setAttribute("scrolling", "no"), T.setAttribute("frameborder", "0"), G(T), (_ || u).appendChild(T);
@@ -2042,7 +2041,7 @@ var e = (e, t, n) => {
2042
2041
  }
2043
2042
  };
2044
2043
  return (() => {
2045
- if (u.setAttribute("poweredAC", "0.1.112"), m.setup && m.setup(c, u), K(), ae(), ie(), C = c.createElement("div"), C.id = "bottomscroller-shell", C.setAttribute("data-bottomscroller-shell", ""), Object.assign(C.style, {
2044
+ if (u.setAttribute("poweredAC", "0.1.113"), m.setup && m.setup(c, u), K(), oe(), ae(), C = c.createElement("div"), C.id = "bottomscroller-shell", C.setAttribute("data-bottomscroller-shell", ""), Object.assign(C.style, {
2046
2045
  position: "fixed",
2047
2046
  left: "0",
2048
2047
  bottom: "0",
@@ -2057,28 +2056,28 @@ var e = (e, t, n) => {
2057
2056
  background: "transparent"
2058
2057
  }), a && a !== "about:blank") try {
2059
2058
  let e = new URL(a, s.location.href);
2060
- e.searchParams.set(n, r), w = c.createElement("iframe"), w.src = e.href, w.setAttribute("data-bottomscroller-display-iframe", ""), w.setAttribute("scrolling", "no"), w.setAttribute("frameborder", "0"), te(w), w.addEventListener("load", () => {
2061
- q(), Y();
2059
+ e.searchParams.set(n, r), w = c.createElement("iframe"), w.src = e.href, w.setAttribute("data-bottomscroller-display-iframe", ""), w.setAttribute("scrolling", "no"), w.setAttribute("frameborder", "0"), W(w), w.addEventListener("load", () => {
2060
+ q(), ie();
2062
2061
  }, { once: !0 }), C.appendChild(w);
2063
2062
  } catch (e) {
2064
2063
  console.warn("[bottomscroller] Could not create display iframe:", e);
2065
2064
  }
2066
- w || (D = E.parentElement, O = E.nextSibling, te(E), E.style.visibility = "", E.style.pointerEvents = "", E.style.position = "relative", C.appendChild(E), q()), c.body.appendChild(C), Y(), N = (e) => {
2067
- e?.data?.type === "bottomscroller:collapse" && X();
2068
- }, s.addEventListener("message", N), j = re, s.addEventListener("scroll", j, { passive: !0 }), c.addEventListener("scroll", j, { passive: !0 }), c.scrollingElement?.addEventListener("scroll", j, { passive: !0 }), s.visualViewport?.addEventListener("resize", re, { passive: !0 });
2065
+ w || (D = E.parentElement, O = E.nextSibling, W(E), E.style.visibility = "", E.style.pointerEvents = "", E.style.position = "relative", C.appendChild(E), q()), c.body.appendChild(C), ie(), N = (e) => {
2066
+ e?.data?.type === "bottomscroller:collapse" && J();
2067
+ }, s.addEventListener("message", N), j = Y, s.addEventListener("scroll", j, { passive: !0 }), c.addEventListener("scroll", j, { passive: !0 }), c.scrollingElement?.addEventListener("scroll", j, { passive: !0 }), s.visualViewport?.addEventListener("resize", Y, { passive: !0 });
2069
2068
  })(), () => {
2070
- N &&= (s.removeEventListener("message", N), null), j &&= (s.removeEventListener("scroll", j), c.removeEventListener("scroll", j), c.scrollingElement?.removeEventListener("scroll", j), null), M &&= (s.cancelAnimationFrame(M), null), s.visualViewport?.removeEventListener("resize", re), w &&= (w.remove(), null), T &&= (T.remove(), null), C &&= (D && E.parentElement === C && (O ? D.insertBefore(E, O) : D.appendChild(E)), C.remove(), null);
2069
+ N &&= (s.removeEventListener("message", N), null), j &&= (s.removeEventListener("scroll", j), c.removeEventListener("scroll", j), c.scrollingElement?.removeEventListener("scroll", j), null), M &&= (s.cancelAnimationFrame(M), null), s.visualViewport?.removeEventListener("resize", Y), w &&= (w.remove(), null), T &&= (T.remove(), null), C &&= (D && E.parentElement === C && (O ? D.insertBefore(E, O) : D.appendChild(E)), C.remove(), null);
2071
2070
  for (let { el: e, orig: t } of x) t ? e.setAttribute("style", t) : e.removeAttribute("style");
2072
2071
  x.length = 0;
2073
2072
  for (let { el: e, paddingBottom: t, paddingBottomPriority: n, paddingTop: r, paddingTopPriority: i } of S) t ? e.style.setProperty("padding-bottom", t, n) : e.style.removeProperty("padding-bottom"), r ? e.style.setProperty("padding-top", r, i) : e.style.removeProperty("padding-top");
2074
2073
  S.length = 0, h ? u.setAttribute("style", h) : u.removeAttribute("style"), g ? l.setAttribute("style", g) : l.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), y && (b ? y.setAttribute("style", b) : y.removeAttribute("style"));
2075
2074
  };
2076
- }, V = () => {};
2077
- function H({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2078
- typeof V == "function" && V();
2075
+ }, K = () => {};
2076
+ function q({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2077
+ typeof K == "function" && K();
2079
2078
  let o = () => {};
2080
- return e === "fireplace" ? o = m(t) : e === "fireplace-collant" ? o = h(t) : e === "logomorph" ? o = F(n, r, i) : e === "dynamicheading" ? o = P(a) : e === "interscroller" ? o = L(a) : e === "liquidframe" ? o = R(a) : e === "mobilefireplace" ? o = z(a) : e === "bottomscroller" ? o = B(a) : console.warn("[powered-ad-config] Unknown ad format:", e), V = typeof o == "function" ? o : () => {}, V;
2079
+ return e === "fireplace" ? o = m(t) : e === "fireplace-collant" ? o = h(t) : e === "logomorph" ? o = H(n, r, i) : e === "dynamicheading" ? o = V(a) : e === "interscroller" ? o = te(a) : e === "liquidframe" ? o = U(a) : e === "mobilefireplace" ? o = W(a) : e === "bottomscroller" ? o = G(a) : console.warn("[powered-ad-config] Unknown ad format:", e), K = typeof o == "function" ? o : () => {}, K;
2081
2080
  }
2082
- H.version = "0.1.112";
2081
+ q.version = "0.1.113";
2083
2082
  //#endregion
2084
- export { H as default };
2083
+ export { q as default };