powered-ad-config 0.1.114 → 0.1.115

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.114");
243
+ c(e, "0.1.115");
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 = 1020, M = 760, N = .875, P = .75, F = 2, I = 6, L = -12, R = (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 = "powered-ad-config-dynamicheading-scale", z = (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
- }, z = (e) => {
447
+ }, B = (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,11 +454,11 @@ 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
- }, B = (e) => {
457
+ }, V = (e) => {
458
458
  if (!Array.isArray(e) || e.length === 0) return E;
459
- let t = e.map(z).filter(Boolean);
459
+ let t = e.map(B).filter(Boolean);
460
460
  return t.length ? t : E;
461
- }, V = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E } = {}) => {
461
+ }, ee = ({ offsetTop: e = C, offsetLeft: t = w, width: n = g, height: i = _, pageTargets: a = E } = {}) => {
462
462
  let o = window.frameElement || null;
463
463
  if (!o) return () => {};
464
464
  let s = window.parent;
@@ -493,7 +493,7 @@ var e = (e, t, n) => {
493
493
  }, m = () => {
494
494
  try {
495
495
  let e = new URL(s.location.href), t = e.hostname.toLowerCase(), n = e.pathname.toLowerCase();
496
- return K.find((e) => {
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;
@@ -512,7 +512,7 @@ var e = (e, t, n) => {
512
512
  }, T = () => {
513
513
  let e = h(), t = e ? [...e.querySelectorAll(y), ...e.querySelectorAll(b)] : [], n = t.length ? [] : Array.from(c.querySelectorAll(x));
514
514
  return Array.from(/* @__PURE__ */ new Set([...t, ...n])).filter(S);
515
- }, z = (e) => {
515
+ }, B = (e) => {
516
516
  let t = T();
517
517
  if (!t.length) return null;
518
518
  let n = typeof e == "string" ? e.trim().toLowerCase() : "";
@@ -521,65 +521,65 @@ 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
- }, V = null, H = null, U = null;
524
+ }, ee = null, te = null, H = null;
525
525
  f();
526
- let ee = R(e, C), te = R(t, w), W = R(n, g), G = R(i, _), K = B(a), q = m();
526
+ let ne = z(e, C), re = z(t, w), U = z(n, g), W = z(i, _), G = V(a), K = m();
527
+ if (!K) return () => {};
528
+ let q = p((K.slotId ? c.getElementById(K.slotId) : null) || o.parentElement);
527
529
  if (!q) return () => {};
528
- let J = p((q.slotId ? c.getElementById(q.slotId) : null) || o.parentElement);
529
- if (!J) return () => {};
530
- let ne = J.getAttribute(k);
531
- if (ne && ne !== u) return () => {};
532
- let re = {
533
- width: J.style.width,
534
- maxWidth: J.style.maxWidth,
535
- minWidth: J.style.minWidth,
536
- height: J.style.height,
537
- minHeight: J.style.minHeight,
538
- marginTop: J.style.marginTop,
539
- marginBottom: J.style.marginBottom,
540
- marginLeft: J.style.marginLeft,
541
- marginRight: J.style.marginRight,
542
- position: J.style.position,
543
- top: J.style.top,
544
- left: J.style.left,
545
- right: J.style.right,
546
- transform: J.style.transform,
547
- display: J.style.display,
548
- opacity: J.style.opacity,
549
- transition: J.style.transition,
550
- pointerEvents: J.style.pointerEvents,
551
- zIndex: J.style.zIndex,
552
- overflow: J.style.overflow
553
- }, Y = {
530
+ let J = q.getAttribute(k);
531
+ if (J && J !== u) return () => {};
532
+ let Y = {
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
554
  width: o.style.width,
555
555
  height: o.style.height,
556
556
  display: o.style.display,
557
557
  border: o.style.border,
558
558
  position: o.style.position,
559
559
  pointerEvents: o.style.pointerEvents
560
- }, ie = [], ae = parseFloat(W) || g, oe = parseFloat(G) || _, se = parseFloat(ee) || 0, ce = parseFloat(te) || 0, le = () => {
560
+ }, ae = [], oe = parseFloat(U) || g, se = parseFloat(W) || _, ce = parseFloat(ne) || 0, X = parseFloat(re) || 0, Z = () => {
561
561
  let e = Number(s.innerWidth) || 0, t = e < M ? P : e < j ? N : 1;
562
562
  return {
563
563
  scale: t,
564
- width: R(ae * t, ae),
565
- widthNumeric: ae * t,
566
- height: R(oe + (t < 1 ? F : 0), oe),
567
- heightNumeric: oe + (t < 1 ? F : 0),
568
- offsetTop: t === P ? se + L : se,
569
- offsetLeft: t < 1 ? ce + I : ce
564
+ width: z(oe * t, oe),
565
+ widthNumeric: oe * t,
566
+ height: z(se + (t < 1 ? F : 0), se),
567
+ heightNumeric: se + (t < 1 ? F : 0),
568
+ offsetTop: t === P ? ce + L : ce,
569
+ offsetLeft: t < 1 ? X + I : X
570
570
  };
571
- }, X = () => {
572
- let e = J.parentElement;
573
- for (; e && e !== c.body;) ie.push({
571
+ }, le = () => {
572
+ let e = q.parentElement;
573
+ for (; e && e !== c.body;) ae.push({
574
574
  element: e,
575
575
  overflow: e.style.overflow
576
576
  }), d(e, "overflow", "visible"), e = e.parentElement;
577
577
  }, ue = () => {
578
- d(J, "width", W), d(J, "maxWidth", W), d(J, "minWidth", W), d(J, "height", G), d(J, "minHeight", G), d(J, "display", "block"), d(J, "overflow", "hidden"), d(J, "pointerEvents", "none"), d(J, "zIndex", "0"), J.setAttribute(k, u), d(o, "width", W), d(o, "height", G), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
579
- }, de = (e = le()) => {
580
- let t = J.parentElement;
581
- t && s.getComputedStyle(t).position === "static" && (t.style.position, d(t, "position", "relative")), d(J, "position", "absolute"), d(J, "top", `${e.offsetTop}px`), d(J, "left", `${e.offsetLeft}px`), d(J, "right", "auto"), d(J, "marginTop", "0px"), d(J, "marginBottom", `${v}px`), d(J, "marginLeft", "0px"), d(J, "marginRight", "0px"), d(J, "transform", "");
582
- }, fe = (e = ae) => {
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
+ }, de = (e = Z()) => {
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
+ }, fe = (e = oe) => {
583
583
  let t = h();
584
584
  if (!t) return e;
585
585
  let n = t.getBoundingClientRect();
@@ -593,23 +593,23 @@ var e = (e, t, n) => {
593
593
  let i = n.left + e.offsetLeft, a = Math.max(0, r - t);
594
594
  return Math.round(Math.min(Math.max(i, 0), a) - n.left);
595
595
  }, me = () => {
596
- let e = le(), t = fe(e.widthNumeric), n = `${t}px`, r = pe(e, t);
597
- d(J, "width", n), d(J, "maxWidth", n), d(J, "minWidth", n), d(J, "height", e.height), d(J, "minHeight", e.height), d(J, "top", `${e.offsetTop}px`), d(J, "left", `${r}px`), d(o, "width", n), d(o, "height", e.height);
598
- }, he = () => {
596
+ let e = Z(), t = fe(e.widthNumeric), n = `${t}px`, r = pe(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
+ }, Q = () => {
599
599
  try {
600
- let e = o.contentDocument?.getElementById("unit");
601
- if (!e) return !1;
602
- let t = le().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;
600
+ let e = o.contentDocument, t = e?.getElementById("unit");
601
+ if (!t) return !1;
602
+ let n = Z().scale, r = e.getElementById(R);
603
+ return r || (r = e.createElement("style"), r.id = R, e.head?.appendChild(r)), n === 1 ? (t.removeAttribute("data-pac-dynamicheading-scale"), r.textContent = "") : (t.setAttribute("data-pac-dynamicheading-scale", String(n)), r.textContent = `#unit[data-pac-dynamicheading-scale] { transform: scale(${n}) !important; transform-origin: left bottom !important; }`), !0;
604
604
  } catch {
605
605
  return !1;
606
606
  }
607
- }, Z = (e = 20) => {
608
- if (he() || e <= 1) {
609
- U = null;
607
+ }, he = (e = 20) => {
608
+ if (Q() || e <= 1) {
609
+ H = null;
610
610
  return;
611
611
  }
612
- U = s.setTimeout(() => Z(e - 1), 100);
612
+ H = s.setTimeout(() => he(e - 1), 100);
613
613
  }, ge = (e) => {
614
614
  let t = null;
615
615
  try {
@@ -628,54 +628,54 @@ var e = (e, t, n) => {
628
628
  if (!t) return !1;
629
629
  o.setAttribute(A, "1");
630
630
  try {
631
- e.parentNode?.insertBefore(J, e);
631
+ e.parentNode?.insertBefore(q, e);
632
632
  } catch {
633
633
  return o.removeAttribute(A), !1;
634
634
  }
635
- X(), ue(), de(), Ce = () => Z(), o.addEventListener("load", Ce);
635
+ le(), ue(), de(), we = () => he(), o.addEventListener("load", we);
636
636
  try {
637
637
  o.srcdoc = t;
638
638
  } catch {
639
639
  return !1;
640
640
  }
641
- return me(), Z(), Se = () => {
642
- me(), Z();
643
- }, s.addEventListener("resize", Se), !0;
641
+ return me(), he(), Ce = () => {
642
+ me(), he();
643
+ }, s.addEventListener("resize", Ce), !0;
644
644
  }, _e = () => {
645
- d(J, "position", "fixed"), d(J, "marginTop", "0px"), d(J, "marginBottom", "0px"), d(J, "marginLeft", "0px"), d(J, "marginRight", "0px"), d(J, "transform", "");
645
+ d(q, "position", "fixed"), d(q, "marginTop", "0px"), d(q, "marginBottom", "0px"), d(q, "marginLeft", "0px"), d(q, "marginRight", "0px"), d(q, "transform", "");
646
646
  }, ve = () => {
647
- d(J, "display", "none");
647
+ d(q, "display", "none");
648
648
  }, ye = () => {
649
- d(J, "display", "block"), d(J, "overflow", "hidden");
650
- }, Q = null, be = () => {
651
- if ((!Q || !Q.isConnected) && (Q = z(q.headingText)), !Q) return;
652
- let e = Q.getBoundingClientRect(), t = e.top - oe - v + se, n = e.left + ce;
653
- d(J, "top", `${t}px`), d(J, "left", `${n}px`), d(J, "right", "auto");
654
- }, $ = null, xe = null, Se = null, Ce = null, we = !1, Te = (e = 12) => {
655
- if (Q = z(q.headingText), !Q) {
656
- e > 1 && (H = s.setTimeout(() => Te(e - 1), 250));
649
+ d(q, "display", "block"), d(q, "overflow", "hidden");
650
+ }, be = null, $ = () => {
651
+ if ((!be || !be.isConnected) && (be = B(K.headingText)), !be) return;
652
+ let e = be.getBoundingClientRect(), t = e.top - se - v + ce, n = e.left + X;
653
+ d(q, "top", `${t}px`), d(q, "left", `${n}px`), d(q, "right", "auto");
654
+ }, xe = null, Se = null, Ce = null, we = null, Te = !1, Ee = (e = 12) => {
655
+ if (be = B(K.headingText), !be) {
656
+ e > 1 && (te = s.setTimeout(() => Ee(e - 1), 250));
657
657
  return;
658
658
  }
659
- ge(Q) || (we = !0, X(), ue(), _e(), be(), $ = () => be(), xe = () => be(), s.addEventListener("scroll", $, { passive: !0 }), s.addEventListener("resize", xe));
659
+ ge(be) || (Te = !0, le(), ue(), _e(), $(), xe = () => $(), Se = () => $(), s.addEventListener("scroll", xe, { passive: !0 }), s.addEventListener("resize", Se));
660
660
  };
661
- Te();
662
- let Ee = () => {
663
- H &&= (s.clearTimeout(H), null), V &&= (s.clearTimeout(V), null), $ &&= (s.removeEventListener("scroll", $), null), xe &&= (s.removeEventListener("resize", xe), null), Se &&= (s.removeEventListener("resize", Se), null), Ce &&= (o.removeEventListener("load", Ce), null), U &&= (s.clearTimeout(U), null), J.getAttribute(k) === u && J.removeAttribute(k), we && (Object.entries(re).forEach(([e, t]) => {
664
- J.style[e] = t;
665
- }), Object.entries(Y).forEach(([e, t]) => {
661
+ Ee();
662
+ let De = () => {
663
+ te &&= (s.clearTimeout(te), null), ee &&= (s.clearTimeout(ee), null), xe &&= (s.removeEventListener("scroll", xe), null), Se &&= (s.removeEventListener("resize", Se), null), Ce &&= (s.removeEventListener("resize", Ce), null), we &&= (o.removeEventListener("load", we), null), H &&= (s.clearTimeout(H), null), q.getAttribute(k) === u && q.removeAttribute(k), Te && (Object.entries(Y).forEach(([e, t]) => {
664
+ q.style[e] = t;
665
+ }), Object.entries(ie).forEach(([e, t]) => {
666
666
  o.style[e] = t;
667
- }), ie.forEach(({ element: e, overflow: t }) => {
667
+ }), ae.forEach(({ element: e, overflow: t }) => {
668
668
  e.style.overflow = t;
669
669
  })), s[O]?.instanceId === u && delete s[O];
670
670
  };
671
671
  return s[O] = {
672
672
  instanceId: u,
673
673
  iframe: o,
674
- cleanup: Ee,
674
+ cleanup: De,
675
675
  show: ye,
676
676
  hide: ve
677
- }, Ee;
678
- }, H = (e, t, n) => {
677
+ }, De;
678
+ }, te = (e, t, n) => {
679
679
  let r = window.frameElement ? window.frameElement : null;
680
680
  if (!r) return () => {};
681
681
  let i = window.parent;
@@ -913,11 +913,11 @@ var e = (e, t, n) => {
913
913
  return p(), () => {
914
914
  i.removeEventListener("scroll", y), S &&= (clearTimeout(S), null);
915
915
  };
916
- }, U = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
916
+ }, H = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
917
917
  if (e === 0 || e === 1) return e;
918
918
  let t = 2 * Math.PI / 3;
919
919
  return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
920
- }), ee = (e = {}) => {
920
+ }), ne = (e = {}) => {
921
921
  let t = {
922
922
  adScrollHeight: "300vh",
923
923
  bandHeight: 24,
@@ -940,7 +940,7 @@ var e = (e, t, n) => {
940
940
  snapOverlap: 2,
941
941
  stretchOverlap: 20,
942
942
  snapDuration: .9,
943
- snapEase: U,
943
+ snapEase: H,
944
944
  onEnter: null,
945
945
  onExit: null,
946
946
  onProgress: null,
@@ -984,7 +984,7 @@ var e = (e, t, n) => {
984
984
  };
985
985
  (() => {
986
986
  let e = a.style;
987
- e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.114"), 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";
987
+ e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.115"), 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";
988
988
  let o = a.parentElement;
989
989
  for (let e = 0; e < 6 && o && o !== i.body; e++) {
990
990
  let t = r.getComputedStyle(o), n = !1;
@@ -1089,7 +1089,7 @@ var e = (e, t, n) => {
1089
1089
  e.style[t] = n || "";
1090
1090
  });
1091
1091
  };
1092
- }, te = (e = {}) => {
1092
+ }, re = (e = {}) => {
1093
1093
  let t = {
1094
1094
  adaptToWidth: "100%",
1095
1095
  maxWidth: "400px",
@@ -1122,7 +1122,7 @@ var e = (e, t, n) => {
1122
1122
  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;
1123
1123
  return (() => {
1124
1124
  let e = a.style;
1125
- if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.114"), c) {
1125
+ if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.115"), c) {
1126
1126
  let e = c.style;
1127
1127
  e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
1128
1128
  }
@@ -1137,7 +1137,7 @@ var e = (e, t, n) => {
1137
1137
  })(), () => {
1138
1138
  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);
1139
1139
  };
1140
- }, W = (e = {}) => {
1140
+ }, U = (e = {}) => {
1141
1141
  let t = {
1142
1142
  billboardHeight: 150,
1143
1143
  sideStripWidth: 10,
@@ -1315,12 +1315,12 @@ var e = (e, t, n) => {
1315
1315
  })(), 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) => ({
1316
1316
  el: e,
1317
1317
  orig: e.getAttribute("style")
1318
- })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], H = null, U = null, ee = null, te = null, W = null, G = null, K = null, q = [], J = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, ne = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, re = !!(t.sticky && (J || ne)), Y = "pending", ie = 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 = {
1318
+ })) : [], N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = null, V = [], ee = null, te = null, H = null, ne = null, re = null, U = null, W = null, G = [], K = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, q = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, J = !!(t.sticky && (K || q)), Y = "pending", ie = 0, ae = 0, oe = null, se = null, ce = null, X = null, Z = null, le = null, ue = [], de = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, fe = {
1319
1319
  FLOW_SYNCED_BODY: "flowSyncedBody",
1320
1320
  SPLIT_IN_FLOW: "splitInFlow",
1321
1321
  IN_FLOW: "inFlow"
1322
1322
  };
1323
- G = (() => {
1323
+ U = (() => {
1324
1324
  let e = n.parentElement;
1325
1325
  for (; e && e !== i.body && e !== i.documentElement;) {
1326
1326
  let t = r.getComputedStyle(e);
@@ -1328,25 +1328,25 @@ var e = (e, t, n) => {
1328
1328
  e = e.parentElement;
1329
1329
  }
1330
1330
  return null;
1331
- })(), K = G ? G.getAttribute("style") : null;
1332
- 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) => {
1333
- if (!e || e === ee || e === y || e === a) return !1;
1331
+ })(), W = U ? U.getAttribute("style") : null;
1332
+ let pe = !!(o && f !== u.afr && (U || p)), me = f === u.afr || x ? fe.FLOW_SYNCED_BODY : pe ? fe.SPLIT_IN_FLOW : fe.IN_FLOW, Q = me === fe.FLOW_SYNCED_BODY, he = (e) => {
1333
+ if (!e || e === H || e === y || e === a) return !1;
1334
1334
  let t = e.firstElementChild;
1335
1335
  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;
1336
1336
  let n = r.getComputedStyle(e);
1337
1337
  return n.position === "fixed" || n.position === "sticky";
1338
- }, _e = (e) => {
1339
- !e?.parentElement || q.some((t) => t.shell === e) || (q.push({
1338
+ }, ge = (e) => {
1339
+ !e?.parentElement || G.some((t) => t.shell === e) || (G.push({
1340
1340
  shell: e,
1341
1341
  parent: e.parentElement,
1342
1342
  nextSibling: e.nextSibling
1343
1343
  }), e.remove());
1344
- }, ve = () => {
1344
+ }, _e = () => {
1345
1345
  for (let e of i.querySelectorAll(".container")) {
1346
1346
  let t = e.parentElement;
1347
- ge(t) && _e(t);
1347
+ he(t) && ge(t);
1348
1348
  }
1349
- }, ye = (e) => {
1349
+ }, ve = (e) => {
1350
1350
  let t = e?.parentElement;
1351
1351
  for (; t && t !== i.body && t !== i.documentElement;) {
1352
1352
  let e = r.getComputedStyle(t);
@@ -1355,7 +1355,7 @@ var e = (e, t, n) => {
1355
1355
  orig: t.getAttribute("style")
1356
1356
  }), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
1357
1357
  }
1358
- }, Q = () => {
1358
+ }, ye = () => {
1359
1359
  let e = i.createElement("div");
1360
1360
  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;
1361
1361
  }, be = () => {
@@ -1384,7 +1384,7 @@ var e = (e, t, n) => {
1384
1384
  return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
1385
1385
  }, Ce = () => {
1386
1386
  let e = Se();
1387
- return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
1387
+ return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, de || t.stickyTop);
1388
1388
  }, we = () => {
1389
1389
  let e = Se();
1390
1390
  return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
@@ -1396,14 +1396,14 @@ var e = (e, t, n) => {
1396
1396
  remainingMs: Math.max(0, Math.round(n))
1397
1397
  }, "*");
1398
1398
  }, Ee = (e) => {
1399
- !e || de.some((t) => t.el === e) || de.push({
1399
+ !e || ue.some((t) => t.el === e) || ue.push({
1400
1400
  el: e,
1401
1401
  value: e.style.getPropertyValue("z-index"),
1402
1402
  priority: e.style.getPropertyPriority("z-index")
1403
1403
  });
1404
1404
  }, De = (e) => {
1405
1405
  let t = new Set([$()].filter(Boolean));
1406
- if (f === u.afr || G || p) {
1406
+ if (f === u.afr || U || p) {
1407
1407
  [
1408
1408
  a,
1409
1409
  y,
@@ -1413,38 +1413,38 @@ var e = (e, t, n) => {
1413
1413
  for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
1414
1414
  }
1415
1415
  for (let n of t) Ee(n), n.style.setProperty("z-index", String(e), "important");
1416
- }, Oe = () => Z && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1417
- if (!Z || !R) return;
1416
+ }, Oe = () => Q && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), ke = () => {
1417
+ if (!Q || !R) return;
1418
1418
  let e = R.style;
1419
1419
  e.left = "0px", e.width = "100vw";
1420
1420
  }, Ae = () => {
1421
- if (!Z || !R || Y === "active") return;
1421
+ if (!Q || !R || Y === "active") return;
1422
1422
  let e = Oe();
1423
1423
  if (!e) return;
1424
1424
  let t = e.getBoundingClientRect(), n = R.style;
1425
1425
  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");
1426
1426
  }, je = () => {
1427
- Z && (Ae(), ce && r.cancelAnimationFrame(ce), ce = r.requestAnimationFrame(() => {
1427
+ Q && (Ae(), ce && r.cancelAnimationFrame(ce), ce = r.requestAnimationFrame(() => {
1428
1428
  ce = null, Ae();
1429
- }), le && r.clearTimeout(le), le = r.setTimeout(() => {
1430
- le = null, Ae();
1429
+ }), X && r.clearTimeout(X), X = r.setTimeout(() => {
1430
+ X = null, Ae();
1431
1431
  }, 350));
1432
1432
  }, Me = () => {
1433
- for (let e = de.length - 1; e >= 0; --e) {
1434
- let { el: t, value: n, priority: r } = de[e];
1433
+ for (let e = ue.length - 1; e >= 0; --e) {
1434
+ let { el: t, value: n, priority: r } = ue[e];
1435
1435
  n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
1436
1436
  }
1437
- de.length = 0;
1437
+ ue.length = 0;
1438
1438
  }, Ne = () => {
1439
1439
  if (!R) return;
1440
- ye($());
1440
+ ve($());
1441
1441
  let e = $().getBoundingClientRect(), t = we();
1442
1442
  De(t);
1443
1443
  let n = R.style;
1444
- 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", "");
1444
+ n.position = "fixed", n.top = `${Ce()}px`, Q ? 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", "");
1445
1445
  }, Pe = () => {
1446
1446
  if (!R) return;
1447
- if (Z) {
1447
+ if (Q) {
1448
1448
  je(), Me();
1449
1449
  return;
1450
1450
  }
@@ -1459,9 +1459,9 @@ var e = (e, t, n) => {
1459
1459
  }
1460
1460
  return oe;
1461
1461
  }, Le = () => ae + (Y === "active" ? Math.max(0, r.performance.now() - ie) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
1462
- let e = J ? Le() / t.stickyDurationMs : 0, n = ne ? Re() / t.stickyScrollDistance : 0;
1462
+ let e = K ? Le() / t.stickyDurationMs : 0, n = q ? Re() / t.stickyScrollDistance : 0;
1463
1463
  return Math.max(e, n);
1464
- }, Be = () => J ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1464
+ }, Be = () => K ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
1465
1465
  Y === "active" && (ae = Le(), Y = "paused", Fe(), Pe(), Te({
1466
1466
  active: !1,
1467
1467
  progress: ze(),
@@ -1481,7 +1481,7 @@ var e = (e, t, n) => {
1481
1481
  He();
1482
1482
  return;
1483
1483
  }
1484
- 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;
1484
+ let e = Le(), n = Re(), i = K ? e / t.stickyDurationMs : 0, a = q ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = K ? t.stickyDurationMs - e : 0;
1485
1485
  if (Ne(), Te({
1486
1486
  active: !0,
1487
1487
  progress: o,
@@ -1492,19 +1492,19 @@ var e = (e, t, n) => {
1492
1492
  }
1493
1493
  se = r.requestAnimationFrame(Ge);
1494
1494
  }, Ke = () => {
1495
- if (!re || Y !== "pending" || !R) return;
1495
+ if (!J || Y !== "pending" || !R) return;
1496
1496
  let e = $().getBoundingClientRect();
1497
1497
  oe = Math.max(0, r.scrollY + e.top - Ce()), ae = 0, Y = "active", ie = r.performance.now(), Ne(), Ge();
1498
1498
  }, qe = () => {
1499
- !re || Y !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Ke();
1499
+ !J || Y !== "pending" || !R || r.scrollY <= 0 || $().getBoundingClientRect().top <= Ce() && Ke();
1500
1500
  }, Je = () => {
1501
1501
  Y === "pending" ? qe() : Y === "active" && Ve() ? He() : Y === "paused" && Ue(), Y !== "active" && je();
1502
1502
  }, Ye = () => {
1503
- Je(), ue && r.cancelAnimationFrame(ue), ue = r.requestAnimationFrame(() => {
1504
- ue = null, Je();
1503
+ Je(), le && r.cancelAnimationFrame(le), le = r.requestAnimationFrame(() => {
1504
+ le = null, Je();
1505
1505
  });
1506
1506
  }, Xe = () => {
1507
- ve();
1507
+ _e();
1508
1508
  let e = n.parentElement;
1509
1509
  for (; e && e !== i.body && e !== i.documentElement;) {
1510
1510
  let t = r.getComputedStyle(e);
@@ -1525,7 +1525,7 @@ var e = (e, t, n) => {
1525
1525
  } catch (e) {
1526
1526
  console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
1527
1527
  }
1528
- if (a.setAttribute("poweredAC", "0.1.114"), _) {
1528
+ if (a.setAttribute("poweredAC", "0.1.115"), _) {
1529
1529
  let e = _.style;
1530
1530
  e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
1531
1531
  }
@@ -1789,18 +1789,18 @@ var e = (e, t, n) => {
1789
1789
  let e = be();
1790
1790
  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%"));
1791
1791
  }
1792
- if (he === pe.SPLIT_IN_FLOW) {
1793
- if (G && (ee = c || y), l && l !== "about:blank") {
1792
+ if (me === fe.SPLIT_IN_FLOW) {
1793
+ if (U && (H = c || y), l && l !== "about:blank") {
1794
1794
  let e = new URL(l);
1795
1795
  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");
1796
1796
  let n = z.style;
1797
1797
  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);
1798
1798
  }
1799
- 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 = Q(), 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";
1799
+ 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), U ? (U.style.position = "static", U.style.inset = "auto", U.style.height = "0", U.style.minHeight = "0", U.style.maxHeight = "0", U.style.overflow = "hidden", U.style.backgroundColor = "transparent", U.style.boxShadow = "none", U.style.border = "0", U.style.outline = "0", U.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";
1800
1800
  for (let { el: e } of M) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
1801
- 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"), ve();
1801
+ 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"), _e();
1802
1802
  }
1803
- B || (B = Q(), a.appendChild(B));
1803
+ B || (B = ye(), a.appendChild(B));
1804
1804
  }, Ze = null, Qe = null, $e = !1, et = () => {
1805
1805
  let e = r.innerWidth, n = r.innerHeight;
1806
1806
  if (e > n) {
@@ -1813,7 +1813,7 @@ var e = (e, t, n) => {
1813
1813
  let e = new URL(l);
1814
1814
  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");
1815
1815
  let n = R.style;
1816
- 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), re && (X = Ye, r.addEventListener("scroll", X, { passive: !0 }), i.addEventListener("scroll", X, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", X, { passive: !0 }));
1816
+ n.position = Q ? "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 = Q ? "6" : "1", Q ? (R.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(R), Ae()) : (B || a).appendChild(R), J && (Z = Ye, r.addEventListener("scroll", Z, { passive: !0 }), i.addEventListener("scroll", Z, { passive: !0 }), i.scrollingElement?.addEventListener("scroll", Z, { passive: !0 }));
1817
1817
  } catch (e) {
1818
1818
  console.warn("[mobilefireplace] Could not create billboard iframe:", e);
1819
1819
  }
@@ -1837,7 +1837,7 @@ var e = (e, t, n) => {
1837
1837
  });
1838
1838
  let tt = () => {
1839
1839
  if (!$e) {
1840
- $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({
1840
+ $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(), ce &&= (r.cancelAnimationFrame(ce), null), X &&= (r.clearTimeout(X), null), Te({
1841
1841
  active: !1,
1842
1842
  progress: 1,
1843
1843
  remainingMs: 0
@@ -1845,19 +1845,19 @@ var e = (e, t, n) => {
1845
1845
  try {
1846
1846
  delete r.__mfBridge;
1847
1847
  } catch {}
1848
- for (let e = q.length - 1; e >= 0; --e) {
1849
- let { shell: t, parent: n, nextSibling: r } = q[e];
1848
+ for (let e = G.length - 1; e >= 0; --e) {
1849
+ let { shell: t, parent: n, nextSibling: r } = G[e];
1850
1850
  !t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
1851
1851
  }
1852
- 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");
1852
+ G.length = 0, ee && (te && te.parentNode === ee ? ee.insertBefore(n, te) : ee.appendChild(n), ee = null, te = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
1853
1853
  for (let { el: e, orig: t } of V) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1854
- V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ee &&= (te && (W && W.parentNode === te ? te.insertBefore(ee, W) : te.appendChild(ee), te = 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);
1854
+ V.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), H &&= (ne && (re && re.parentNode === ne ? ne.insertBefore(H, re) : ne.appendChild(H), ne = null, re = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), U && (W ? U.setAttribute("style", W) : U.removeAttribute("style"), U = null, W = null);
1855
1855
  for (let { el: e, orig: t } of M) t ? e.setAttribute("style", t) : e.removeAttribute("style");
1856
1856
  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"));
1857
1857
  }
1858
1858
  };
1859
1859
  return tt;
1860
- }, G = (e = {}) => {
1860
+ }, W = (e = {}) => {
1861
1861
  let t = {
1862
1862
  expandedHeight: 180,
1863
1863
  collapsedHeight: 50,
@@ -1972,7 +1972,7 @@ var e = (e, t, n) => {
1972
1972
  let e = m.getPaddingTargets(c), t = [];
1973
1973
  for (let n of e) !n || t.includes(n) || t.some((e) => e.contains(n)) || t.push(n);
1974
1974
  return t;
1975
- }, V = Number.isFinite(t.pageTopPadding) ? Math.max(0, t.pageTopPadding) : Number.isFinite(m.pageTopPadding) ? Math.max(0, m.pageTopPadding) : 0, H = (e) => {
1975
+ }, V = Number.isFinite(t.pageTopPadding) ? Math.max(0, t.pageTopPadding) : Number.isFinite(m.pageTopPadding) ? Math.max(0, m.pageTopPadding) : 0, ee = (e) => {
1976
1976
  !e || S.some((t) => t.el === e) || S.push({
1977
1977
  el: e,
1978
1978
  paddingBottom: e.style.getPropertyValue("padding-bottom"),
@@ -1980,28 +1980,28 @@ var e = (e, t, n) => {
1980
1980
  paddingTop: e.style.getPropertyValue("padding-top"),
1981
1981
  paddingTopPriority: e.style.getPropertyPriority("padding-top")
1982
1982
  });
1983
- }, U = (e) => {
1984
- 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");
1985
- }, ee = () => w || E, te = () => ee()?.contentWindow || null, W = (e) => {
1983
+ }, te = (e) => {
1984
+ for (let t of B()) ee(t), t.style.setProperty("padding-bottom", `${e}px`, "important"), V > 0 && t.style.setProperty("padding-top", `${V}px`, "important");
1985
+ }, H = () => w || E, ne = () => H()?.contentWindow || null, re = (e) => {
1986
1986
  if (!e) return;
1987
1987
  let n = e.style;
1988
1988
  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));
1989
- }, G = (e) => {
1989
+ }, U = (e) => {
1990
1990
  let n = t.classicBannerWidth, r = t.classicBannerHeight;
1991
1991
  e.setAttribute("width", String(n)), e.setAttribute("height", String(r));
1992
1992
  let i = e.style;
1993
1993
  i.display = "block", i.width = `${n}px`, i.height = `${r}px`, i.maxWidth = "100%", i.border = "none", i.margin = "0 auto", i.padding = "0", i.overflow = "hidden", i.background = "transparent";
1994
- }, K = () => {
1994
+ }, W = () => {
1995
1995
  let e = E.style;
1996
1996
  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";
1997
- }, q = () => {
1997
+ }, G = () => {
1998
1998
  P || (P = !0, t.onAdapt && t.onAdapt());
1999
- }, J = (e, n = !1) => {
1999
+ }, K = (e, n = !1) => {
2000
2000
  if (!C) return;
2001
2001
  k = e;
2002
2002
  let r = I();
2003
- n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, W(ee()), U(e);
2004
- }, ne = (e) => {
2003
+ n ? C.style.transition = `height ${t.collapseTransitionMs}ms ease` : C.style.transition = "none", C.style.height = `${e}px`, C.style.bottom = `${r}px`, re(H()), te(e);
2004
+ }, q = (e) => {
2005
2005
  let n = e.progress ?? L(), r = {
2006
2006
  type: "bottomscroller:progress",
2007
2007
  phase: e.phase ?? z(n),
@@ -2010,21 +2010,21 @@ var e = (e, t, n) => {
2010
2010
  height: k,
2011
2011
  active: n > 0 && n < 1,
2012
2012
  ...e
2013
- }, i = te();
2013
+ }, i = ne();
2014
2014
  i && i.postMessage(r, "*"), typeof window < "u" && window.postMessage && window.postMessage(r, "*"), typeof t.onProgress == "function" && t.onProgress(r);
2015
- }, re = ({ animate: e = !1 } = {}) => {
2015
+ }, J = ({ animate: e = !1 } = {}) => {
2016
2016
  let t = L(), n = R(t);
2017
- J(n, e), ne({
2017
+ K(n, e), q({
2018
2018
  phase: z(t),
2019
2019
  progress: t,
2020
2020
  remainingMs: 0,
2021
2021
  active: t > 0 && t < 1
2022
2022
  });
2023
2023
  }, Y = () => {
2024
- A = !0, re({ animate: !0 });
2024
+ A = !0, J({ animate: !0 });
2025
2025
  }, ie = () => {
2026
- re(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2027
- M = null, re();
2026
+ J(), M && s.cancelAnimationFrame(M), M = s.requestAnimationFrame(() => {
2027
+ M = null, J();
2028
2028
  });
2029
2029
  }, ae = () => {
2030
2030
  let e = l.parentElement;
@@ -2041,13 +2041,13 @@ var e = (e, t, n) => {
2041
2041
  }, oe = () => {
2042
2042
  if (!(!a || a === "about:blank")) try {
2043
2043
  let e = new URL(a, s.location.href);
2044
- 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);
2044
+ 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"), U(T), (_ || u).appendChild(T);
2045
2045
  } catch (e) {
2046
2046
  console.warn("[bottomscroller] Could not create banner iframe:", e);
2047
2047
  }
2048
2048
  };
2049
2049
  return (() => {
2050
- if (u.setAttribute("poweredAC", "0.1.114"), 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, {
2050
+ if (u.setAttribute("poweredAC", "0.1.115"), m.setup && m.setup(c, u), W(), oe(), ae(), C = c.createElement("div"), C.id = "bottomscroller-shell", C.setAttribute("data-bottomscroller-shell", ""), Object.assign(C.style, {
2051
2051
  position: "fixed",
2052
2052
  left: "0",
2053
2053
  bottom: "0",
@@ -2062,13 +2062,13 @@ var e = (e, t, n) => {
2062
2062
  background: "transparent"
2063
2063
  }), a && a !== "about:blank") try {
2064
2064
  let e = new URL(a, s.location.href);
2065
- 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", () => {
2066
- q(), re();
2065
+ 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"), re(w), w.addEventListener("load", () => {
2066
+ G(), J();
2067
2067
  }, { once: !0 }), C.appendChild(w);
2068
2068
  } catch (e) {
2069
2069
  console.warn("[bottomscroller] Could not create display iframe:", e);
2070
2070
  }
2071
- 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), re(), N = (e) => {
2071
+ w || (D = E.parentElement, O = E.nextSibling, re(E), E.style.visibility = "", E.style.pointerEvents = "", E.style.position = "relative", C.appendChild(E), G()), c.body.appendChild(C), J(), N = (e) => {
2072
2072
  e?.data?.type === "bottomscroller:collapse" && Y();
2073
2073
  }, s.addEventListener("message", N), j = ie, s.addEventListener("scroll", j, { passive: !0 }), c.addEventListener("scroll", j, { passive: !0 }), c.scrollingElement?.addEventListener("scroll", j, { passive: !0 }), s.visualViewport?.addEventListener("resize", ie, { passive: !0 });
2074
2074
  })(), () => {
@@ -2078,12 +2078,12 @@ var e = (e, t, n) => {
2078
2078
  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");
2079
2079
  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"));
2080
2080
  };
2081
- }, K = () => {};
2082
- function q({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2083
- typeof K == "function" && K();
2081
+ }, G = () => {};
2082
+ function K({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight: r = 0, logoSmallHeight: i = 0, ...a } = {}) {
2083
+ typeof G == "function" && G();
2084
2084
  let o = () => {};
2085
- 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 = ee(a) : e === "liquidframe" ? o = te(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;
2085
+ return e === "fireplace" ? o = m(t) : e === "fireplace-collant" ? o = h(t) : e === "logomorph" ? o = te(n, r, i) : e === "dynamicheading" ? o = ee(a) : e === "interscroller" ? o = ne(a) : e === "liquidframe" ? o = re(a) : e === "mobilefireplace" ? o = U(a) : e === "bottomscroller" ? o = W(a) : console.warn("[powered-ad-config] Unknown ad format:", e), G = typeof o == "function" ? o : () => {}, G;
2086
2086
  }
2087
- q.version = "0.1.114";
2087
+ K.version = "0.1.115";
2088
2088
  //#endregion
2089
- export { q as default };
2089
+ export { K as default };
@@ -74,7 +74,7 @@
74
74
  position: relative !important;
75
75
  z-index: 1072 !important;
76
76
  }
77
- `),a(Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let o=s(r.querySelector(`footer`),`div`);o&&i(o,`position`,`relative`)}},D=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/entertainment`,config:T},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/entertainment`,config:T},{site:`https://www.nine.com.au`,config:T},{site:`https://www.nine`,config:T},{site:`https://staging.nine`,config:T},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],O=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=L.siteBackgroundColor),N(),M(),j(),d.addEventListener(`scroll`,I),R=setTimeout(I,50),L===T||L===E){let e=L===T||L===E?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&d.MutationObserver&&(g=new d.MutationObserver(()=>{F()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),d.addEventListener(`resize`,F),F()}},k=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},A=()=>{let e=d.location.href;for(let t=0;t<D.length;t+=1)if(e.indexOf(D[t].site)>=0)return D[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return E}catch{return T}return T},j=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&d.getComputedStyle(t).position===`sticky`){t.style.top=`${L.stickyMargin.offset}px`;break}},M=()=>{if(!u)return;let e=u.style;e.width=L.iframeWidth||`100%`,e.height=L.iframeHeight||f,e.backgroundColor=L.iframeBackgroundColor||p,e.position=`fixed`,L.iframeTop==null?e.removeProperty(`top`):e.top=L.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=u.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=d.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},N=()=>{let e=k();if(!e)return;c(e,`0.1.114`);let t=e.style;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()},P=()=>{let e=d.scrollY,t=u.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=z?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>z&&e<=B?(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(${z-e}px)`):e>B&&(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(-250px)`)},F=()=>{L!==T&&L!==E||h||(h=d.requestAnimationFrame(()=>{h=null,M(),N(),j(),P()}))},I=()=>{P()};k();let L=A();if(!L)return()=>{};let R=null,z=l,B=z+250;return O(),()=>{d.removeEventListener(`scroll`,I),d.removeEventListener(`resize`,F),g&&=(g.disconnect(),null),h&&=(d.cancelAnimationFrame(h),null),R&&=(clearTimeout(R),null)}},h=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
77
+ `),a(Array.from(r.querySelectorAll(`main, aside, article, footer, [id*="adspot-desktop-banner-"]`)),[[`position`,`relative`],[`zIndex`,`1072`]]);let o=s(r.querySelector(`footer`),`div`);o&&i(o,`position`,`relative`)}},D=[{site:`https://www.nine.com.au/sport`,config:E},{site:`https://www.nine.com.au/entertainment`,config:T},{site:`https://staging.nine.com.au/sport`,config:E},{site:`https://staging.nine.com.au/entertainment`,config:T},{site:`https://www.nine.com.au`,config:T},{site:`https://www.nine`,config:T},{site:`https://staging.nine`,config:T},{site:`https://www.yourtv`,config:_},{site:`https://staging.yourtv`,config:_}],O=()=>{let e=window.document.getElementById(`nineContent`);if(e&&(e.style.backgroundColor=L.siteBackgroundColor),N(),M(),j(),d.addEventListener(`scroll`,I),R=setTimeout(I,50),L===T||L===E){let e=L===T||L===E?x():null,t=e?.appRoot||S()||m.body,n=e?.desktopHeaderAds||m.querySelector(`#desktop-header-ads`);t&&d.MutationObserver&&(g=new d.MutationObserver(()=>{F()}),g.observe(t,{childList:!0,subtree:!0}),n&&n!==t&&g.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]})),d.addEventListener(`resize`,F),F()}},k=()=>{let e=null;return e=m.querySelector(`div[id*="billboard"][id*="above"]`),e},A=()=>{let e=d.location.href;for(let t=0;t<D.length;t+=1)if(e.indexOf(D[t].site)>=0)return D[t].config;try{let t=new URL(e),n=t.hostname.toLowerCase(),r=t.pathname.toLowerCase();if(n.includes(`yourtv`))return _;if(r.startsWith(`/sport`))return E}catch{return T}return T},j=()=>{if(!window.parent)return;let e=m.querySelector(`div[id*="halfpage"][id*="above"]`);if(!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&d.getComputedStyle(t).position===`sticky`){t.style.top=`${L.stickyMargin.offset}px`;break}},M=()=>{if(!u)return;let e=u.style;e.width=L.iframeWidth||`100%`,e.height=L.iframeHeight||f,e.backgroundColor=L.iframeBackgroundColor||p,e.position=`fixed`,L.iframeTop==null?e.removeProperty(`top`):e.top=L.iframeTop,e.left=`50%`,e.transform=`translate(-50%, 0)`;let t=u.parentElement;for(;t&&t!==m.body&&t!==m.documentElement;){let e=d.getComputedStyle(t);e.transform&&e.transform!==`none`&&(t.style.transform=`none`),e.willChange&&e.willChange!==`auto`&&(t.style.willChange=`auto`),e.contain&&e.contain!==`none`&&(t.style.contain=`none`),e.filter&&e.filter!==`none`&&(t.style.filter=`none`),e.perspective&&e.perspective!==`none`&&(t.style.perspective=`none`),e.overflow!==`visible`&&(t.style.overflow=`visible`),t=t.parentElement}},N=()=>{let e=k();if(!e)return;c(e,`0.1.115`);let t=e.style;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()},P=()=>{let e=d.scrollY,t=u.style,n=document.getElementById(`siteContent`)?document.getElementById(`siteContent`).style:{};e>=0&&e<=z?(t.transform=`translate(-50%, ${-e}px)`,n.transform=`translateY(0)`):e>z&&e<=B?(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(${z-e}px)`):e>B&&(t.transform=`translate(-50%, ${-z}px)`,n.transform=`translateY(-250px)`)},F=()=>{L!==T&&L!==E||h||(h=d.requestAnimationFrame(()=>{h=null,M(),N(),j(),P()}))},I=()=>{P()};k();let L=A();if(!L)return()=>{};let R=null,z=l,B=z+250;return O(),()=>{d.removeEventListener(`scroll`,I),d.removeEventListener(`resize`,F),g&&=(g.disconnect(),null),h&&=(d.cancelAnimationFrame(h),null),R&&=(clearTimeout(R),null)}},h=o=>{let c=window.frameElement?window.frameElement:null;if(!c)return()=>{};let l=window.parent;if(!l||l===window)return()=>{};let u=null;try{u=l.document,l.location.href}catch{return()=>{}}let d=document.getElementById(`nineMasthead`),f=d?d.style:{},p,m=e=>{if(!e.querySelector(`div[id*="tablet"][id*="takeover"]`))return;let t=e.getElementById(`powered-ac-tablet-takeover-static-fix`);t||(t=e.createElement(`style`),t.id=`powered-ac-tablet-takeover-static-fix`,e.head.appendChild(t)),t.textContent=`
78
78
  div:has(#adspot-tablet-takeover-2-above) {
79
79
  position: static;
80
80
  }
@@ -142,9 +142,9 @@
142
142
  position: relative !important;
143
143
  z-index: 1072 !important;
144
144
  }
145
- `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=F.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),k(),O(),E(),A(),l.addEventListener(`scroll`,N,{passive:!0}),I=setTimeout(N,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},k=()=>{if(!P)return;let e=P.style;P.className=``,e.minHeight=`250px`,e.marginTop=F.adNodeMarginTop+`px`,e.marginBottom=F.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,F.zIndex&&F.zIndex()},A=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=F.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},j=0,M=0,N=()=>{let e=l.scrollY,t=e>j,n=e>R?e-F.maskOffset:0,r=Math.abs(n-M);if(p){if(t&&n>M){if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`)}j=e,M=n,e>R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>L&&e<=R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`${250+L-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=L&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},P=w(),F=D();if(!F)return()=>{};let I=null,L=-F.responsiveScroll+o+T(),R=L+150;return C(),()=>{l.removeEventListener(`scroll`,N),I&&=(clearTimeout(I),null)}},g=866,_=68,v=16,y=`:scope > header h1, :scope > header h2, :scope > header h3`,b=`h1, h2, h3`,x=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,S=`adspot-desktop-takeover-2-above`,C=-24,w=-24,T=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],E=[{hostnames:T,path:`/sport`,headingText:`Sport`,slotId:S}],D=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)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},z=e=>{if(!e||typeof e!=`object`)return null;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):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():S,hostnames:i.length?i:T}},B=e=>{if(!Array.isArray(e)||e.length===0)return E;let t=e.map(z).filter(Boolean);return t.length?t:E},V=({offsetTop:e=C,offsetLeft:t=w,width:n=g,height:i=_,pageTargets:a=E}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[O];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return D.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},p=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},m=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return K.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}},h=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},S=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},T=()=>{let e=h(),t=e?[...e.querySelectorAll(y),...e.querySelectorAll(b)]:[],n=t.length?[]:Array.from(c.querySelectorAll(x));return Array.from(new Set([...t,...n])).filter(S)},z=e=>{let t=T();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},V=null,H=null,U=null;f();let ee=R(e,C),te=R(t,w),W=R(n,g),G=R(i,_),K=B(a),q=m();if(!q)return()=>{};let J=p((q.slotId?c.getElementById(q.slotId):null)||o.parentElement);if(!J)return()=>{};let ne=J.getAttribute(k);if(ne&&ne!==u)return()=>{};let re={width:J.style.width,maxWidth:J.style.maxWidth,minWidth:J.style.minWidth,height:J.style.height,minHeight:J.style.minHeight,marginTop:J.style.marginTop,marginBottom:J.style.marginBottom,marginLeft:J.style.marginLeft,marginRight:J.style.marginRight,position:J.style.position,top:J.style.top,left:J.style.left,right:J.style.right,transform:J.style.transform,display:J.style.display,opacity:J.style.opacity,transition:J.style.transition,pointerEvents:J.style.pointerEvents,zIndex:J.style.zIndex,overflow:J.style.overflow},Y={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},ie=[],ae=parseFloat(W)||g,oe=parseFloat(G)||_,se=parseFloat(ee)||0,ce=parseFloat(te)||0,le=()=>{let e=Number(s.innerWidth)||0,t=e<M?P:e<j?N:1;return{scale:t,width:R(ae*t,ae),widthNumeric:ae*t,height:R(oe+(t<1?F:0),oe),heightNumeric:oe+(t<1?F:0),offsetTop:t===P?se+L:se,offsetLeft:t<1?ce+I:ce}},X=()=>{let e=J.parentElement;for(;e&&e!==c.body;)ie.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},ue=()=>{d(J,`width`,W),d(J,`maxWidth`,W),d(J,`minWidth`,W),d(J,`height`,G),d(J,`minHeight`,G),d(J,`display`,`block`),d(J,`overflow`,`hidden`),d(J,`pointerEvents`,`none`),d(J,`zIndex`,`0`),J.setAttribute(k,u),d(o,`width`,W),d(o,`height`,G),d(o,`display`,`block`),d(o,`border`,`0`),d(o,`position`,`relative`),d(o,`pointerEvents`,`auto`)},de=(e=le())=>{let t=J.parentElement;t&&s.getComputedStyle(t).position===`static`&&(t.style.position,d(t,`position`,`relative`)),d(J,`position`,`absolute`),d(J,`top`,`${e.offsetTop}px`),d(J,`left`,`${e.offsetLeft}px`),d(J,`right`,`auto`),d(J,`marginTop`,`0px`),d(J,`marginBottom`,`${v}px`),d(J,`marginLeft`,`0px`),d(J,`marginRight`,`0px`),d(J,`transform`,``)},fe=(e=ae)=>{let t=h();if(!t)return e;let n=t.getBoundingClientRect();if(n.width<=0)return e;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;return a?e:Math.min(e,o)},pe=(e,t)=>{if(e.scale>=1)return e.offsetLeft;let n=h()?.getBoundingClientRect(),r=c.documentElement?.clientWidth||c.body?.clientWidth||0;if(!n||n.width<=0||r<=0)return e.offsetLeft;let i=n.left+e.offsetLeft,a=Math.max(0,r-t);return Math.round(Math.min(Math.max(i,0),a)-n.left)},me=()=>{let e=le(),t=fe(e.widthNumeric),n=`${t}px`,r=pe(e,t);d(J,`width`,n),d(J,`maxWidth`,n),d(J,`minWidth`,n),d(J,`height`,e.height),d(J,`minHeight`,e.height),d(J,`top`,`${e.offsetTop}px`),d(J,`left`,`${r}px`),d(o,`width`,n),d(o,`height`,e.height)},he=()=>{try{let e=o.contentDocument?.getElementById(`unit`);if(!e)return!1;let t=le().scale;return t===1?(e.style.removeProperty(`transform`),e.style.removeProperty(`transform-origin`)):(d(e,`transform`,`scale(${t})`),d(e,`transformOrigin`,`left bottom`)),!0}catch{return!1}},Z=(e=20)=>{if(he()||e<=1){U=null;return}U=s.setTimeout(()=>Z(e-1),100)},ge=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
145
+ `)},y={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#adspot-desktop-banner-7-below`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`)}},b={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){let e=window.parent.document;e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),m(e),v()}},x={siteBackgroundColor:`#ffffff`,fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){let e=window.parent.document,t=s(e.querySelector(`footer`),`div`);t&&(t.style.position=`relative`),m(e),v()}},S=[{site:`https://www.nine.com.au/sport`,config:x},{site:`https://www.nine.com.au/entertainment`,config:b},{site:`https://staging.nine.com.au/sport`,config:x},{site:`https://staging.nine.com.au/entertainment`,config:b},{site:`https://www.nine.com.au`,config:b},{site:`https://www.nine`,config:b},{site:`https://staging.nine`,config:b},{site:`https://www.yourtv`,config:y},{site:`https://staging.yourtv`,config:y}],C=()=>{let e=window.document.getElementById(`nineContent`);e&&(e.style.backgroundColor=F.siteBackgroundColor),d&&(f.setProperty(`--masthead-height`,`250px`),f.height=`var(--masthead-height)`),k(),O(),E(),A(),l.addEventListener(`scroll`,N,{passive:!0}),I=setTimeout(N,50)},w=()=>{let e=null;return e=u.querySelector(`div[id*="billboard"][id*="above"]`),e},T=()=>{let e=u.querySelector(`nav`);if(h(`header-ad-desktop`)||!e)return 0;let t=l.getComputedStyle(e);if(t.position!==`fixed`)return 0;let n=parseFloat(t.top||`0`);return Number.isFinite(n)&&Math.abs(n)>1?0:Math.round(e.getBoundingClientRect().height)||0},E=()=>{let e=null;if(!window.parent)return e;if(e=u.querySelector(`div[id*="halfpage"][id*="above"]`),!e)return;let t=e;for(let e=0;e<6;e++)if(t=t.parentNode,t&&l.getComputedStyle(t).position===`sticky`){t.style.top=`${F.stickyMargin.offset}px`;break}},D=()=>{let e=l.location.href;for(let t=0;t<S.length;t+=1)if(e.indexOf(S[t].site)>=0)return S[t].config},O=()=>{if(!c)return;let e=c.style;e.width=`100%`,e.height=`1000px`,e.position=`fixed`,e.left=`50%`,e.setProperty(`--transform-y`,`0px`),e.transform=`translate3d(-50%, var(--transform-y), 0)`},k=()=>{if(!P)return;let e=P.style;P.className=``,e.minHeight=`250px`,e.marginTop=F.adNodeMarginTop+`px`,e.marginBottom=F.adNodeMarginBottom+`px`,e.position=`static`,e.display=`block`,F.zIndex&&F.zIndex()},A=()=>{p=u.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode||u.querySelector(`div[data-ui-testid="header-score-strip"]`)?.parentNode||h(`main`)||h(`container`)||h(`page-container`)||u.querySelector(`div[class*="__MyContainer"]`)||u.querySelector(`div[class*="__ArticleContainer"]`)||u.querySelector(`div[class*="__VideoIndexComponent"]`)||u.querySelector(`div.container.layout`)||u.querySelector(`main.container.layout`),p&&(p.style.willChange=`clip-path`,p.style.transition=`none`,p.style.webkitBackfaceVisibility=`hidden`,p.style.backfaceVisibility=`hidden`,p.style.transform=`translate3d(0,0,0)`,p.style.backgroundColor=F.siteBackgroundColor,p.style.setProperty(`--mask-inset`,`0px`),p.style.clipPath=`inset(var(--mask-inset, 0px) 0 0 0)`)},j=0,M=0,N=()=>{let e=l.scrollY,t=e>j,n=e>R?e-F.maskOffset:0,r=Math.abs(n-M);if(p){if(t&&n>M){if(r>100){let e=Math.max(0,n-100);p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${e}px`),p.offsetHeight,p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`clip-path 0.3s ease-out`,p.style.setProperty(`--mask-inset`,`${n}px`)}else p.style.transition=`none`,p.style.setProperty(`--mask-inset`,`${n}px`)}j=e,M=n,e>R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`100px`),window.CollantOn||window.goCollant()):e>L&&e<=R?(c.style.setProperty(`--transform-y`,`${-L}px`),f.setProperty(`--masthead-height`,`${250+L-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=L&&(c.style.setProperty(`--transform-y`,`${-e}px`),f.setProperty(`--masthead-height`,`250px`),window.CollantOn&&window.goBillboard())},P=w(),F=D();if(!F)return()=>{};let I=null,L=-F.responsiveScroll+o+T(),R=L+150;return C(),()=>{l.removeEventListener(`scroll`,N),I&&=(clearTimeout(I),null)}},g=866,_=68,v=16,y=`:scope > header h1, :scope > header h2, :scope > header h3`,b=`h1, h2, h3`,x=`#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3`,S=`adspot-desktop-takeover-2-above`,C=-24,w=-24,T=[`www.nine.com.au`,`staging.nine.com.au`,`preview.nine.com.au`,`render-web-nine-staging-v1.ffxblue.com.au`,`render-web-nine-production-v1.ffxblue.com.au`],E=[{hostnames:T,path:`/sport`,headingText:`Sport`,slotId:S}],D=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=`powered-ad-config-dynamicheading-scale`,z=(e,t)=>{if(typeof e==`number`&&Number.isFinite(e))return`${e}px`;if(typeof e==`string`){let n=e.trim();return n?/^-?\d+(\.\d+)?$/.test(n)?`${n}px`:n:`${t}px`}return`${t}px`},B=e=>{if(!e||typeof e!=`object`)return null;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):[];return!t||!n&&!r?null:{headingText:t,path:n||null,pathPrefix:r||null,slotId:typeof e.slotId==`string`&&e.slotId.trim()?e.slotId.trim():S,hostnames:i.length?i:T}},V=e=>{if(!Array.isArray(e)||e.length===0)return E;let t=e.map(B).filter(Boolean);return t.length?t:E},ee=({offsetTop:e=C,offsetLeft:t=w,width:n=g,height:i=_,pageTargets:a=E}={})=>{let o=window.frameElement||null;if(!o)return()=>{};let s=window.parent;if(!s||s===window)return()=>{};let c=null;try{c=s.document,s.location.href}catch{return()=>{}}let l=s[O];if(l?.iframe===o&&typeof l.cleanup==`function`)return l.cleanup;if(l?.iframe?.isConnected&&typeof l?.cleanup==`function`)return()=>{};typeof l?.cleanup==`function`&&l.cleanup();let u=`dynamicheading-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,d=(e,t,n)=>{e&&e.style[t]!==n&&(e.style[t]=n)},f=()=>{try{let e=window.location.hostname.toLowerCase();return D.has(e)?!0:new URLSearchParams(window.location.search).get(`keepDynamicHeadingVisible`)===`1`}catch{return!1}},p=(e=o.parentElement)=>{let t=e;for(;t&&t!==c.body;){let e=t.id||``,n=t.getAttribute?.(`data-testid`)||``,r=t.getAttribute?.(`type`)||``;if(e.includes(`adspot`)||n.toLowerCase().includes(`ad`)||r)return t;t=t.parentElement}return o.parentElement},m=()=>{try{let e=new URL(s.location.href),t=e.hostname.toLowerCase(),n=e.pathname.toLowerCase();return G.find(e=>{let r=e.hostnames.includes(t),i=e.path?n===e.path:n.startsWith(e.pathPrefix);return r&&i})||null}catch{return null}},h=()=>{let e=r(c,`app`)||c.getElementById(`app`)||c,t=r(e,`page-container`)||e;return r(r(t,`container`)||t,`main`)||r(e,`main`)||c.querySelector(`#app main`)||null},S=e=>{if(!e||!e.isConnected)return!1;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return!1;let n=s.getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`},T=()=>{let e=h(),t=e?[...e.querySelectorAll(y),...e.querySelectorAll(b)]:[],n=t.length?[]:Array.from(c.querySelectorAll(x));return Array.from(new Set([...t,...n])).filter(S)},B=e=>{let t=T();if(!t.length)return null;let n=typeof e==`string`?e.trim().toLowerCase():``;if(n){let e=t.find(e=>e.textContent?.trim().toLowerCase()===n);if(e)return e}return t.find(e=>e.tagName===`H1`)||t[0]||null},ee=null,te=null,H=null;f();let ne=z(e,C),re=z(t,w),U=z(n,g),W=z(i,_),G=V(a),K=m();if(!K)return()=>{};let q=p((K.slotId?c.getElementById(K.slotId):null)||o.parentElement);if(!q)return()=>{};let J=q.getAttribute(k);if(J&&J!==u)return()=>{};let Y={width:q.style.width,maxWidth:q.style.maxWidth,minWidth:q.style.minWidth,height:q.style.height,minHeight:q.style.minHeight,marginTop:q.style.marginTop,marginBottom:q.style.marginBottom,marginLeft:q.style.marginLeft,marginRight:q.style.marginRight,position:q.style.position,top:q.style.top,left:q.style.left,right:q.style.right,transform:q.style.transform,display:q.style.display,opacity:q.style.opacity,transition:q.style.transition,pointerEvents:q.style.pointerEvents,zIndex:q.style.zIndex,overflow:q.style.overflow},ie={width:o.style.width,height:o.style.height,display:o.style.display,border:o.style.border,position:o.style.position,pointerEvents:o.style.pointerEvents},ae=[],oe=parseFloat(U)||g,se=parseFloat(W)||_,ce=parseFloat(ne)||0,X=parseFloat(re)||0,Z=()=>{let e=Number(s.innerWidth)||0,t=e<M?P:e<j?N:1;return{scale:t,width:z(oe*t,oe),widthNumeric:oe*t,height:z(se+(t<1?F:0),se),heightNumeric:se+(t<1?F:0),offsetTop:t===P?ce+L:ce,offsetLeft:t<1?X+I:X}},le=()=>{let e=q.parentElement;for(;e&&e!==c.body;)ae.push({element:e,overflow:e.style.overflow}),d(e,`overflow`,`visible`),e=e.parentElement},ue=()=>{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`)},de=(e=Z())=>{let t=q.parentElement;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`,``)},fe=(e=oe)=>{let t=h();if(!t)return e;let n=t.getBoundingClientRect();if(n.width<=0)return e;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;return a?e:Math.min(e,o)},pe=(e,t)=>{if(e.scale>=1)return e.offsetLeft;let n=h()?.getBoundingClientRect(),r=c.documentElement?.clientWidth||c.body?.clientWidth||0;if(!n||n.width<=0||r<=0)return e.offsetLeft;let i=n.left+e.offsetLeft,a=Math.max(0,r-t);return Math.round(Math.min(Math.max(i,0),a)-n.left)},me=()=>{let e=Z(),t=fe(e.widthNumeric),n=`${t}px`,r=pe(e,t);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)},Q=()=>{try{let e=o.contentDocument,t=e?.getElementById(`unit`);if(!t)return!1;let n=Z().scale,r=e.getElementById(R);return r||(r=e.createElement(`style`),r.id=R,e.head?.appendChild(r)),n===1?(t.removeAttribute(`data-pac-dynamicheading-scale`),r.textContent=``):(t.setAttribute(`data-pac-dynamicheading-scale`,String(n)),r.textContent=`#unit[data-pac-dynamicheading-scale] { transform: scale(${n}) !important; transform-origin: left bottom !important; }`),!0}catch{return!1}},he=(e=20)=>{if(Q()||e<=1){H=null;return}H=s.setTimeout(()=>he(e-1),100)},ge=e=>{let t=null;try{let e=o.contentDocument;if(!e)return!1;let n=e.getElementById(`unitContainer`);if(!n)return!1;let r=Array.from(e.querySelectorAll(`link[rel="stylesheet"]`)).map(e=>e.outerHTML).join(`
146
146
  `),i=Array.from(e.querySelectorAll(`script[src]`)).filter(e=>{let t=e.getAttribute(`src`)||``;return/(s0\.2mdn\.net|cdn\.jsdelivr\.net|players\.brightcove\.net)/.test(t)}).map(e=>e.outerHTML).join(`
147
- `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(A,`1`);try{e.parentNode?.insertBefore(J,e)}catch{return o.removeAttribute(A),!1}X(),ue(),de(),Ce=()=>Z(),o.addEventListener(`load`,Ce);try{o.srcdoc=t}catch{return!1}return me(),Z(),Se=()=>{me(),Z()},s.addEventListener(`resize`,Se),!0},_e=()=>{d(J,`position`,`fixed`),d(J,`marginTop`,`0px`),d(J,`marginBottom`,`0px`),d(J,`marginLeft`,`0px`),d(J,`marginRight`,`0px`),d(J,`transform`,``)},ve=()=>{d(J,`display`,`none`)},ye=()=>{d(J,`display`,`block`),d(J,`overflow`,`hidden`)},Q=null,be=()=>{if((!Q||!Q.isConnected)&&(Q=z(q.headingText)),!Q)return;let e=Q.getBoundingClientRect(),t=e.top-oe-v+se,n=e.left+ce;d(J,`top`,`${t}px`),d(J,`left`,`${n}px`),d(J,`right`,`auto`)},$=null,xe=null,Se=null,Ce=null,we=!1,Te=(e=12)=>{if(Q=z(q.headingText),!Q){e>1&&(H=s.setTimeout(()=>Te(e-1),250));return}ge(Q)||(we=!0,X(),ue(),_e(),be(),$=()=>be(),xe=()=>be(),s.addEventListener(`scroll`,$,{passive:!0}),s.addEventListener(`resize`,xe))};Te();let Ee=()=>{H&&=(s.clearTimeout(H),null),V&&=(s.clearTimeout(V),null),$&&=(s.removeEventListener(`scroll`,$),null),xe&&=(s.removeEventListener(`resize`,xe),null),Se&&=(s.removeEventListener(`resize`,Se),null),Ce&&=(o.removeEventListener(`load`,Ce),null),U&&=(s.clearTimeout(U),null),J.getAttribute(k)===u&&J.removeAttribute(k),we&&(Object.entries(re).forEach(([e,t])=>{J.style[e]=t}),Object.entries(Y).forEach(([e,t])=>{o.style[e]=t}),ie.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[O]?.instanceId===u&&delete s[O]};return s[O]={instanceId:u,iframe:o,cleanup:Ee,show:ye,hide:ve},Ee},H=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=x.logoSmallLeft,e.style.transform=x.logoSmallTransform,e.style.filter=x.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),S=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!b)return;let e=b.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=x.logoTop,e.left=x.logoLeft,e.transform=x.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,x.zIndex&&x.zIndex()},v=e=>{if(!b)return;let r=b.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=x.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=C?v(`big`):e>C&&(v(e>w?`small`:`big`),w=e<=0?0:e)},b=m(),x=h();if(!x)return()=>{};let S=null,C=e,w=0;return p(),()=>{i.removeEventListener(`scroll`,y),S&&=(clearTimeout(S),null)}},U=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),ee=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:U,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.114`),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`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else!_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},te=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};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;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.114`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{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)}},W=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:5e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`#app > [data-ad-target="header"], [data-ad-target="header"] [data-ad-target="header-nav"], body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),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=>({el:e,orig:e.getAttribute(`style`)})):[],N=null,P=null,F=null,I=null,L=null,R=null,z=null,B=null,V=[],H=null,U=null,ee=null,te=null,W=null,G=null,K=null,q=[],J=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,ne=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,re=!!(t.sticky&&(J||ne)),Y=`pending`,ie=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={FLOW_SYNCED_BODY:`flowSyncedBody`,SPLIT_IN_FLOW:`splitInFlow`,IN_FLOW:`inFlow`};G=(()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`)return e;e=e.parentElement}return null})(),K=G?G.getAttribute(`style`):null;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=>{if(!e||e===ee||e===y||e===a)return!1;let t=e.firstElementChild;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;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},_e=e=>{!e?.parentElement||q.some(t=>t.shell===e)||(q.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},ve=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;ge(t)&&_e(t)}},ye=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.find(e=>e.el===t)||V.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},Q=()=>{let e=i.createElement(`div`);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},be=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).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`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>B||a,xe=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),Se=()=>{let e=xe().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},Ce=()=>{let e=Se();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,fe||t.stickyTop)},we=()=>{let e=Se();return e?.zIndex&&e.zIndex>2?Math.max(1,Math.min(t.stickyZIndex,e.zIndex-1)):t.stickyZIndex},Te=({active:e,progress:t=0,remainingMs:n=0})=>{R?.contentWindow&&R.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Ee=e=>{!e||de.some(t=>t.el===e)||de.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},De=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||G||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Ee(n),n.style.setProperty(`z-index`,String(e),`important`)},Oe=()=>Z&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),ke=()=>{if(!Z||!R)return;let e=R.style;e.left=`0px`,e.width=`100vw`},Ae=()=>{if(!Z||!R||Y===`active`)return;let e=Oe();if(!e)return;let t=e.getBoundingClientRect(),n=R.style;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`)},je=()=>{Z&&(Ae(),ce&&r.cancelAnimationFrame(ce),ce=r.requestAnimationFrame(()=>{ce=null,Ae()}),le&&r.clearTimeout(le),le=r.setTimeout(()=>{le=null,Ae()},350))},Me=()=>{for(let e=de.length-1;e>=0;--e){let{el:t,value:n,priority:r}=de[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}de.length=0},Ne=()=>{if(!R)return;ye($());let e=$().getBoundingClientRect(),t=we();De(t);let n=R.style;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`,``)},Pe=()=>{if(!R)return;if(Z){je(),Me();return}let e=R.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Me(),R.removeAttribute(`data-mf-sticky-active`)},Fe=()=>{se&&=(r.cancelAnimationFrame(se),null)},Ie=()=>{if(oe===null){let e=$().getBoundingClientRect();oe=Math.max(0,r.scrollY+e.top-Ce())}return oe},Le=()=>ae+(Y===`active`?Math.max(0,r.performance.now()-ie):0),Re=()=>Math.max(0,r.scrollY-Ie()),ze=()=>{let e=J?Le()/t.stickyDurationMs:0,n=ne?Re()/t.stickyScrollDistance:0;return Math.max(e,n)},Be=()=>J?t.stickyDurationMs-Le():0,Ve=()=>r.scrollY<Ie()-1,He=()=>{Y===`active`&&(ae=Le(),Y=`paused`,Fe(),Pe(),Te({active:!1,progress:ze(),remainingMs:Be()}))},Ue=()=>{Y!==`paused`||Ve()||(Y=`active`,ie=r.performance.now(),Ne(),Ge())},We=()=>{(Y===`active`||Y===`paused`)&&(Y===`active`&&(ae=Le()),Y=`released`,Fe(),Pe(),Te({active:!1,progress:1,remainingMs:0}))},Ge=()=>{if(Y!==`active`)return;if(Ve()){He();return}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;if(Ne(),Te({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){We();return}se=r.requestAnimationFrame(Ge)},Ke=()=>{if(!re||Y!==`pending`||!R)return;let e=$().getBoundingClientRect();oe=Math.max(0,r.scrollY+e.top-Ce()),ae=0,Y=`active`,ie=r.performance.now(),Ne(),Ge()},qe=()=>{!re||Y!==`pending`||!R||r.scrollY<=0||$().getBoundingClientRect().top<=Ce()&&Ke()},Je=()=>{Y===`pending`?qe():Y===`active`&&Ve()?He():Y===`paused`&&Ue(),Y!==`active`&&je()},Ye=()=>{Je(),ue&&r.cancelAnimationFrame(ue),ue=r.requestAnimationFrame(()=>{ue=null,Je()})},Xe=()=>{ve();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(V.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(V.find(t=>t.el===e)||V.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let d=n.style;if(d.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),d.setProperty(`top`,`0`,f===u.afr?`important`:``),d.setProperty(`left`,`0`,f===u.afr?`important`:``),d.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),d.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),d.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),d.setProperty(`border`,`none`,f===u.afr?`important`:``),d.setProperty(`margin`,`0`,f===u.afr?`important`:``),d.setProperty(`padding`,`0`,f===u.afr?`important`:``),d.setProperty(`display`,`block`,f===u.afr?`important`:``),d.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),d.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);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`);let t=z.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(z,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.114`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let p=a.style;p.height=t.billboardHeight+`px`,p.minHeight=t.billboardHeight+`px`,p.background=`transparent`,p.overflow=`visible`,p.position=`relative`,p.width=`100%`,p.padding=`0`,p.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,x&&S&&S!==`0px`&&(y.style.marginTop=S),y.setAttribute(`data-mf-slot`,``));let m=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,h=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(L=i.createElement(`style`),L.id=`mobilefireplace-pac`,L.textContent=`
147
+ `);t=`<!doctype html><html><head><meta charset="utf-8">${r}<style>html,body{margin:0;padding:0;background:transparent;}</style></head><body>${n.outerHTML}${i}</body></html>`}catch{return!1}if(!t)return!1;o.setAttribute(A,`1`);try{e.parentNode?.insertBefore(q,e)}catch{return o.removeAttribute(A),!1}le(),ue(),de(),we=()=>he(),o.addEventListener(`load`,we);try{o.srcdoc=t}catch{return!1}return me(),he(),Ce=()=>{me(),he()},s.addEventListener(`resize`,Ce),!0},_e=()=>{d(q,`position`,`fixed`),d(q,`marginTop`,`0px`),d(q,`marginBottom`,`0px`),d(q,`marginLeft`,`0px`),d(q,`marginRight`,`0px`),d(q,`transform`,``)},ve=()=>{d(q,`display`,`none`)},ye=()=>{d(q,`display`,`block`),d(q,`overflow`,`hidden`)},be=null,$=()=>{if((!be||!be.isConnected)&&(be=B(K.headingText)),!be)return;let e=be.getBoundingClientRect(),t=e.top-se-v+ce,n=e.left+X;d(q,`top`,`${t}px`),d(q,`left`,`${n}px`),d(q,`right`,`auto`)},xe=null,Se=null,Ce=null,we=null,Te=!1,Ee=(e=12)=>{if(be=B(K.headingText),!be){e>1&&(te=s.setTimeout(()=>Ee(e-1),250));return}ge(be)||(Te=!0,le(),ue(),_e(),$(),xe=()=>$(),Se=()=>$(),s.addEventListener(`scroll`,xe,{passive:!0}),s.addEventListener(`resize`,Se))};Ee();let De=()=>{te&&=(s.clearTimeout(te),null),ee&&=(s.clearTimeout(ee),null),xe&&=(s.removeEventListener(`scroll`,xe),null),Se&&=(s.removeEventListener(`resize`,Se),null),Ce&&=(s.removeEventListener(`resize`,Ce),null),we&&=(o.removeEventListener(`load`,we),null),H&&=(s.clearTimeout(H),null),q.getAttribute(k)===u&&q.removeAttribute(k),Te&&(Object.entries(Y).forEach(([e,t])=>{q.style[e]=t}),Object.entries(ie).forEach(([e,t])=>{o.style[e]=t}),ae.forEach(({element:e,overflow:t})=>{e.style.overflow=t})),s[O]?.instanceId===u&&delete s[O]};return s[O]={instanceId:u,iframe:o,cleanup:De,show:ye,hide:ve},De},te=(e,t,n)=>{let r=window.frameElement?window.frameElement:null;if(!r)return()=>{};let i=window.parent;if(!i||i===window)return()=>{};let a=null;try{a=i.document,i.location.href}catch{return()=>{}}let o={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`250px`,logoSmallTransform:`translateX(0px)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},s={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class*="article__MyContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:-24px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},c={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`.nk-demographics`)?.setAttribute(`style`,`max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`.nk-footer`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#article`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#VideoIndex`)?.setAttribute(`style`,`position:relative`),e.querySelector(`#Index`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.show`)?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`.column`),[[`position`,`relative`]]),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`blockquote`),[[`zIndex`,`1`]]),e.querySelector(`div[class^="component__StrapContainer"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`section[class^="WatchNow__Container"]`)?.setAttribute(`style`,`margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);`),e.querySelector(`div[class*="ArticleContainer"]`)?.setAttribute(`style`,`max-width:1190px;margin-top:0px`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},l={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document,t=(e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n));e.querySelector(`section[data-section="marketing-banner"]`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.container--ads`)?.setAttribute(`style`,`min-height:0`),e.getElementById(`mastheadAnchorToggle`)?.setAttribute(`style`,`display:none`),t(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),t(e.querySelectorAll(`iframe`),[[`position`,`relative`]]),e.querySelector(`div[data-testid="live-tv"]`)?.parentNode?.setAttribute(`style`,`position:relative`),e.querySelector(`div[data-contentunit-id="stan"]`)?.parentNode?.setAttribute(`style`,`position:relative`),t(e.querySelectorAll(`small`),[[`position`,`relative`]]),e.querySelector(`small`)?.setAttribute(`style`,`position:inherit`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},u={siteBackgroundColor:`#ffffff`,logoTop:`-148px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`none`,zIndex:function(){let e=window.parent.document;e.querySelector(`.container--padded`)?.setAttribute(`style`,`position:relative`),((e,t)=>e.forEach(e=>t.forEach(([t,n])=>e.style[t]=n)))(e.querySelectorAll(`.advert`),[[`position`,`relative`]]),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},d={siteBackgroundColor:`#ffffff`,logoTop:`44px`,logoLeft:`50%`,logoTransform:`translateX(-50%)`,logoSmallLeft:`50%`,logoSmallTransform:`translateX(-50%)`,logoSmallFilter:`invert(1)`,zIndex:function(){let e=window.parent.document;e.querySelector(`.header-wrapper`)?.setAttribute(`style`,`height:124px`),e.querySelector(`.weather-widget-wrapper`)?.setAttribute(`style`,`bottom:0px`),e.querySelector(`.content`)?.setAttribute(`style`,`padding-top:32px`),e.querySelector(`.layout`)?.setAttribute(`style`,`position:relative;background-color:transparent;`),e.querySelector(`.footer-ad`)?.setAttribute(`style`,`position:relative`),e.querySelector(`.footer-netkit`)?.setAttribute(`style`,`position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);`),e.querySelector(`div[type="BANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[type="MBANNER"]`)?.setAttribute(`style`,`display:none`),e.querySelector(`div[id*="sidepanel"][id*="above"]`)?.setAttribute(`style`,`display:none`)}},f=[{site:`https://www.nine.com.au/sport`,config:o},{site:`https://www.nine.com.au/product-reviews`,config:c},{site:`https://www.nine.com.au/property`,config:c},{site:`https://www.nine.com.au/entertainment`,config:c},{site:`https://staging.nine.com.au/sport`,config:o},{site:`https://staging.nine.com.au/product-reviews`,config:c},{site:`https://staging.nine.com.au/property`,config:c},{site:`https://staging.nine.com.au/entertainment`,config:c},{site:`https://render-web-nine-staging-v1.ffxblue.com.au`,config:l},{site:`https://render-web-nine-production-v1.ffxblue.com.au`,config:l},{site:`https://preview.nine.com.au/`,config:l},{site:`https://www.nine.com.au`,config:l},{site:`https://www.nine`,config:l},{site:`https://staging.nine`,config:l},{site:`https://entertainment`,config:s},{site:`https://celebrity`,config:s},{site:`https://homes`,config:s},{site:`https://travel`,config:s},{site:`https://honey`,config:s},{site:`https://style`,config:s},{site:`https://coach`,config:s},{site:`https://kitchen`,config:s},{site:`https://finance`,config:s},{site:`https://wwos`,config:u},{site:`https://staging.wwos`,config:u},{site:`https://www.9news`,config:d},{site:`https://staging.9news`,config:d},{site:`https://www.yourtv`,config:s},{site:`https://staging.yourtv`,config:s},{site:`https://9now`,config:c},{site:`https://creative-preview-an.com`,config:s}],p=()=>{let e=window.document.getElementById(`logo-small`);e&&(e.style.left=x.logoSmallLeft,e.style.transform=x.logoSmallTransform,e.style.filter=x.logoSmallFilter),_(),g(),i.addEventListener(`scroll`,y),S=setTimeout(y,50)},m=()=>{let e=null;return e=a.querySelector(`div[id*="desktop"][id*="takeover"][id*="above"]`),e},h=()=>{let e=i.location.href;for(let t=0;t<f.length;t+=1)if(e.indexOf(f[t].site)>=0)return f[t].config},g=()=>{if(!r)return;let e=r.style;e.width=`100%`,e.height=`${t}px`,e.position=`relative`},_=()=>{if(!b)return;let e=b.style;e.maxHeight=`${t}px`,e.minHeight=`${t}px`,e.marginTop=`0px`,e.marginBottom=`0px`,e.position=`absolute`,e.width=`1900px`,e.top=x.logoTop,e.left=x.logoLeft,e.transform=x.logoTransform,e.zIndex=`10000`,e.pointerEvents=`none`,x.zIndex&&x.zIndex()},v=e=>{if(!b)return;let r=b.style;e===`big`&&!window.bigActive?(r.maxHeight=`${t}px`,r.minHeight=`${t}px`,r.position=`absolute`,r.top=x.logoTop,r.zIndex=`10000`,typeof window.loadBig==`function`&&window.loadBig()):e===`small`&&!window.smallActive&&(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position=`fixed`,r.top=`0px`,r.zIndex=`100000`,typeof window.loadSmall==`function`&&window.loadSmall())},y=()=>{let e=i.scrollY;r.style,e>=0&&e<=C?v(`big`):e>C&&(v(e>w?`small`:`big`),w=e<=0?0:e)},b=m(),x=h();if(!x)return()=>{};let S=null,C=e,w=0;return p(),()=>{i.removeEventListener(`scroll`,y),S&&=(clearTimeout(S),null)}},H=((e,t=50)=>`linear(${Array.from({length:t+1},(n,r)=>e(r/t)).map(e=>+e.toFixed(4)).join(`, `)})`)(e=>{if(e===0||e===1)return e;let t=2*Math.PI/3;return 2**(-10*e)*Math.sin((e*10-.75)*t)+1}),ne=(e={})=>{let t={adScrollHeight:`300vh`,bandHeight:24,bandBg:`#222`,bandColor:`#fff`,bandFontSize:`10px`,bandFontFamily:`Arial, Helvetica, sans-serif`,bandLetterSpacing:`1px`,labelTop:`Advertisement`,labelBottomResume:`Scroll to continue`,labelBottomMid:`Keep scrolling`,labelBottomLate:`Almost there`,labelBottomNow:`Content now ↓`,progressBarColor:`rgba(255,255,255,0.35)`,zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:20,snapDuration:.9,snapEase:H,onEnter:null,onExit:null,onProgress:null,thresholds:[],...e},n=window.frameElement?window.frameElement:null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mobile-3-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=a.getAttribute(`style`),s=n.getAttribute(`style`),c=[],l={width:`100vw`,marginLeft:`calc(50% - 50vw)`,height:t.bandHeight+`px`,backgroundColor:t.bandBg,color:t.bandColor,fontSize:t.bandFontSize,fontFamily:t.bandFontFamily,textTransform:`uppercase`,letterSpacing:t.bandLetterSpacing,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`};(()=>{let e=a.style;e.height=t.adScrollHeight,e.maxHeight=t.adScrollHeight,e.position=`relative`,a.setAttribute(`poweredAC`,`0.1.115`),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`;let o=a.parentElement;for(let e=0;e<6&&o&&o!==i.body;e++){let t=r.getComputedStyle(o),n=!1;(t.overflow===`hidden`||t.overflowY===`hidden`)&&(c.push({el:o,prop:`overflow`,val:o.style.overflow}),c.push({el:o,prop:`overflowY`,val:o.style.overflowY}),o.style.overflow=`visible`,o.style.overflowY=`visible`,n=!0);let i=parseFloat(t.height);t.height!==`auto`&&!isNaN(i)&&i<600&&(c.push({el:o,prop:`height`,val:o.style.height}),o.style.height=`auto`,n=!0);let a=t.maxHeight;if(a&&a!==`none`&&(c.push({el:o,prop:`maxHeight`,val:o.style.maxHeight}),o.style.maxHeight=`none`,n=!0),!n&&e>1)break;o=o.parentElement}let s=n.style;s.position=`fixed`,s.top=`0`,s.left=`0`,s.width=`100vw`,s.height=`100vh`,s.maxWidth=`100vw`,s.margin=`0`,s.padding=`0`,s.border=`none`,s.zIndex=`1`;let u=i.createElement(`div`);u.id=`interscroller-top-band-wrapper`,Object.assign(u.style,{position:`sticky`,bottom:`0`,width:`100vw`,marginLeft:`calc(50% - 50vw)`,zIndex:t.zIndexTop,pointerEvents:`none`});let d=i.createElement(`div`);d.id=`interscroller-top-band`,d.textContent=t.labelTop,Object.assign(d.style,l,{position:`relative`,width:`100%`,marginLeft:`0`,transformOrigin:`top center`}),u.appendChild(d),a.insertAdjacentElement(`beforebegin`,u);let f=i.createElement(`div`);f.id=`interscroller-bottom-band`,Object.assign(f.style,l,{position:`fixed`,bottom:`0`,left:`0`,zIndex:t.zIndexBottom,display:`flex`,overflow:`hidden`,transform:`translateY(100%)`,transition:`none`});let p=i.createElement(`span`);if(p.id=`interscroller-bottom-label`,p.textContent=t.labelBottomResume,p.style.cssText=`position:relative;z-index:1;pointer-events:none;`,f.appendChild(p),t.progressBarColor){let e=i.createElement(`span`);e.id=`interscroller-bottom-progress`,e.style.cssText=[`position:absolute`,`inset:0`,`width:0%`,`background:${t.progressBarColor}`,`transition:none`,`z-index:0`,`pointer-events:none`].join(`;`),f.appendChild(e)}a.after(f)})();let u=i.querySelector(`#interscroller-top-band`),d=i.querySelector(`#interscroller-top-band-wrapper`),f=i.querySelector(`#interscroller-bottom-band`),p=i.querySelector(`#interscroller-bottom-label`),m=i.querySelector(`#interscroller-bottom-progress`),h=t.bandHeight,g=t.snapPx,_=!1,v=!1,y=!1,b=!1,x=(t.thresholds||[]).map(()=>!1),S=()=>{if(!f)return;let e=a.getBoundingClientRect(),n=r.innerHeight;if(e.bottom<=0||e.top>=n){f.style.display=`none`;return}f.style.display=`flex`;let i=e.top<=n,o=e.bottom<=n-h,s=b?e.top<=n-t.bottomBandHideAt:e.top<=n-t.bottomBandShowAt,c=a.offsetHeight,l=Math.min(1,Math.max(0,(n-e.top)/(c+n))),d=Math.min(1,Math.max(0,(n-e.top)/(c+h))),S=Math.min(1,Math.max(0,(n-e.top)/c)),C=Math.min(e.bottom,n)-Math.max(e.top-h,0),w=Math.min(1,Math.max(0,C/n)),T=Math.max(0,Math.round(e.bottom-n));!v&&i&&t.onEnter&&t.onEnter(),!y&&o&&t.onExit&&t.onExit(),v=i,y=o,b=s,t.onProgress&&t.onProgress({scrollProgress:l,adExposure:S,viewportCoverage:w,pxRemaining:T}),(t.thresholds||[]).forEach((e,t)=>{let n=x[t],r=l>=e.at;!n&&r?(x[t]=!0,e.onEnter&&e.onEnter(l)):n&&!r&&(x[t]=!1,e.onLeave&&e.onLeave(l))});let E=n;if(u&&e.top<=E+t.stretchOverlap&&!o){let n=E-e.top;if(!_&&n<=g-t.snapOverlap){let e=1+Math.max(0,n+t.stretchOverlap)/h;u.style.transition=`none`,u.style.transform=`scaleY(${e})`}else!_&&n>g-t.snapOverlap&&(_=!0,u.style.transition=`transform ${t.snapDuration}s ${t.snapEase}`,u.style.transform=`scaleY(1)`)}else u&&e.top>E+t.stretchOverlap&&(_=!1,u.style.transition=`none`,u.style.transform=`scaleY(1)`);let D=r.visualViewport?Math.round(r.innerHeight-(r.visualViewport.offsetTop+r.visualViewport.height)):0;o?(f.style.transition=`none`,f.style.transform=`none`,f.style.position=`sticky`,f.style.top=`0`,f.style.bottom=``,f.style.left=``,f.style.marginLeft=`calc(50% - 50vw)`,f.style.width=`100vw`,p&&(p.textContent=t.labelBottomNow),m&&(m.style.width=`100%`)):s?(p&&(p.textContent=T>0?d<.2?t.labelBottomResume:d<.75?t.labelBottomMid:t.labelBottomLate:t.labelBottomNow),m&&(m.style.width=`${Math.round(d*100)}%`),f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(0)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.top=``,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`):(f.style.transition=`transform 0.3s ease`,f.style.transform=`translateY(100%)`,f.style.position=`fixed`,f.style.bottom=`${D}px`,f.style.left=`0`,f.style.marginLeft=`0`,f.style.width=`100vw`)};return S(),r.addEventListener(`scroll`,S,{passive:!0}),r.visualViewport?.addEventListener(`resize`,S,{passive:!0}),()=>{r.removeEventListener(`scroll`,S),r.visualViewport?.removeEventListener(`resize`,S),d?d.remove():u&&u.remove(),f&&f.remove(),o?a.setAttribute(`style`,o):a.removeAttribute(`style`),s?n.setAttribute(`style`,s):n.removeAttribute(`style`),c.forEach(({el:e,prop:t,val:n})=>{e.style[t]=n||``})}},re=(e={})=>{let t={adaptToWidth:`100%`,maxWidth:`400px`,maintainAspectRatio:!0,adaptToHeight:!1,zIndex:7,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};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;return(()=>{let e=a.style;if(e.position=`relative`,e.overflow=`visible`,e.boxSizing=`border-box`,a.setAttribute(`poweredAC`,`0.1.115`),c){let e=c.style;e.width=`100%`,e.height=`100%`,e.margin=`0`,e.textAlign=`left`}let t=n.style;t.display=`block`,t.width=`100%`,t.height=`100%`,t.border=`none`,t.margin=`0`,t.padding=`0`})(),(()=>{let e=a.style;e.zIndex=String(t.zIndex),t.adaptToWidth&&(e.width=t.adaptToWidth,e.maxWidth=t.maxWidth||t.adaptToWidth,t.maxWidth&&t.adaptToWidth!==`100vw`&&!t.adaptToWidth.endsWith(`vw`)?(e.marginLeft=`auto`,e.marginRight=`auto`):(t.adaptToWidth===`100vw`||t.adaptToWidth.endsWith(`vw`))&&(e.marginLeft=`calc(50% - 50vw)`,e.marginRight=`0`)),u&&d&&d!==`0px`&&(u.style.paddingTop=`0`),t.maintainAspectRatio?r.requestAnimationFrame(()=>{let e=a.offsetWidth||p,r=Math.round((m||50)/p*e);a.style.height=r+`px`,c&&(c.style.height=r+`px`),n.style.height=r+`px`,t.onAdapt&&t.onAdapt()}):(t.adaptToHeight&&(e.height=t.adaptToHeight),t.onAdapt&&t.onAdapt())})(),()=>{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)}},U=(e={})=>{let t={billboardHeight:150,sideStripWidth:10,zIndex:0,creativeUrl:null,sticky:!1,stickyDurationMs:5e3,stickyScrollDistance:600,stickyTop:0,stickyZIndex:1e4,stickyRespectHeader:!0,stickyHeaderSelector:`#app > [data-ad-target="header"], [data-ad-target="header"] [data-ad-target="header-nav"], body > header, body > * > header, [role="banner"]`,stickyHeaderFallbackHeight:null,onAdapt:null,...e},n=window.frameElement??null;if(!n)return()=>{};let r=window.parent;if(!r||r===window)return()=>{};let i=null;try{i=r.document,r.location.href}catch{return()=>{}}let a=(()=>{let e=i.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`);if(e)return e;let t=n.parentElement;for(;t&&t!==i.body;){if(t.id&&t.id.includes(`adspot`))return t;t=t.parentElement}return n.parentElement})();if(!a)return()=>{};let o=i.querySelector(`main#content`)||i.querySelector(`main`),s=i.querySelector(`#app`),c=a.closest(`.adWrapper`)||a.parentElement,l=t.creativeUrl||``,u={nine:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},wwos:{siteBackgroundColor:`#ffffff`,setup(e,t){e.querySelector(`main`)?.style.setProperty(`position`,`relative`);let n=t?.parentElement?.nextElementSibling;n&&n.tagName!==`HEADER`&&(n.style.paddingTop=`0px`)}},nineNews:{siteBackgroundColor:`#ffffff`,setup(e){let t=e.querySelector(`.layout`);t&&(t.style.backgroundColor=`transparent`),e.querySelector(`.content`)?.style.setProperty(`position`,`relative`)}},lifestyle:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{siteBackgroundColor:`#ffffff`,setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{siteBackgroundColor:`transparent`,setup(e){let n=e.querySelector(`#root`);n&&(n.style.setProperty(`background-color`,`transparent`,`important`),n.style.setProperty(`position`,`relative`,`important`),n.style.setProperty(`z-index`,`1`,`important`)),e.querySelectorAll(`#root > *, #root [class*="-content"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`1`,`important`)});let r=e.querySelector(`main#content`)||e.querySelector(`main`);r&&(r.style.setProperty(`background-color`,`#ffffff`,`important`),r.style.setProperty(`box-sizing`,`border-box`,`important`),r.style.setProperty(`margin-top`,`0`,`important`),r.style.setProperty(`margin-left`,`-16px`,`important`),r.style.setProperty(`margin-right`,`-16px`,`important`),r.style.setProperty(`width`,`calc(100% + 32px)`,`important`),r.style.setProperty(`max-width`,`none`,`important`),r.style.setProperty(`padding`,`10px`,`important`),r.style.setProperty(`position`,`relative`),r.style.setProperty(`z-index`,`5`,`important`),r.style.setProperty(`isolation`,`isolate`));let i=[`#root [class*="topHeader"]`,`#root [class*="headerWrapper"]`,`#root #subscribe-button-piano-id`,`#root #subscribe-strip-piano-id`,`#root iframe[id^="offer_"]`].join(`, `);e.querySelectorAll(i).forEach(e=>{e.style.setProperty(`background-color`,`#ffffff`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`position`,`relative`,`important`),e.style.setProperty(`z-index`,`5`,`important`)}),e.querySelectorAll(`#root [class*="topHeader"], #root [class*="headerWrapper"], #root #subscribe-strip-piano-id, #root #subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`),e.style.setProperty(`margin-left`,`calc(50% - 50vw)`,`important`),e.style.setProperty(`margin-right`,`0`,`important`)}),e.querySelectorAll(`#root #subscribe-button-piano-id, #root #subscribe-button-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100%`,`important`)}),e.querySelectorAll(`#subscribe-strip-piano-id iframe[id^="offer_"]`).forEach(e=>{e.style.setProperty(`width`,`100vw`,`important`),e.style.setProperty(`min-width`,`0`,`important`),e.style.setProperty(`max-width`,`100vw`,`important`)});let a=e.querySelector(`#stickyLeaderboard`);a&&(a.style.setProperty(`background-color`,`transparent`,`important`),a.style.setProperty(`background-image`,`none`,`important`),a.style.setProperty(`box-sizing`,`border-box`,`important`),a.style.setProperty(`position`,`relative`,`important`),a.style.setProperty(`z-index`,`5`,`important`),a.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),a.style.setProperty(`margin-left`,`-16px`,`important`),a.style.setProperty(`margin-right`,`-16px`,`important`),a.style.setProperty(`width`,`calc(100% + 32px)`,`important`),a.style.setProperty(`max-width`,`none`,`important`),a.style.setProperty(`overflow`,`visible`,`important`));let o=[`#stickyLeaderboard > *`,`#stickyLeaderboard .adWrapper`,`#stickyLeaderboard [class*="styledAd"]`].join(`, `);e.querySelectorAll(o).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`margin-left`,`0`,`important`),e.style.setProperty(`margin-right`,`0`,`important`),e.style.setProperty(`height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`min-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`max-height`,`${t.billboardHeight}px`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`overflow`,`visible`,`important`)}),e.querySelectorAll(`#stickyLeaderboard small[class*="-text"]`).forEach(e=>{e.style.setProperty(`background-color`,`transparent`,`important`),e.style.setProperty(`background-image`,`none`,`important`),e.style.setProperty(`box-sizing`,`border-box`,`important`),e.style.setProperty(`display`,`block`,`important`),e.style.setProperty(`position`,`absolute`,`important`),e.style.setProperty(`height`,`0`,`important`),e.style.setProperty(`min-height`,`0`,`important`),e.style.setProperty(`max-height`,`0`,`important`),e.style.setProperty(`line-height`,`0`,`important`),e.style.setProperty(`padding`,`0`,`important`),e.style.setProperty(`margin`,`0`,`important`),e.style.setProperty(`overflow`,`hidden`,`important`),e.style.setProperty(`left`,`0`,`important`),e.style.setProperty(`width`,`100%`,`important`),e.style.setProperty(`max-width`,`100%`,`important`),e.style.setProperty(`color`,`transparent`,`important`),e.style.setProperty(`font-size`,`0`,`important`),e.setAttribute(`aria-hidden`,`true`)})}}},d=[{site:`https://www.nine.com.au/sport`,config:u.wwos},{site:`https://staging.nine.com.au/sport`,config:u.wwos},{site:`https://www.nine.com.au`,config:u.nine},{site:`https://staging.nine.com.au`,config:u.nine},{site:`https://preview.nine.com.au`,config:u.nine},{site:`https://www.9news`,config:u.nineNews},{site:`https://staging.9news`,config:u.nineNews},{site:`https://honey`,config:u.lifestyle},{site:`https://www.smh`,config:u.smh},{site:`https://www.theage`,config:u.theage},{site:`https://www.afr.com.au`,config:u.afr},{site:`https://www.afr.com`,config:u.afr},{site:`https://creative-preview-an.com`,config:u.nine}],f=(()=>{let e=r.location.href;for(let t of d)if(e.indexOf(t.site)>=0)return t.config;return u.nine})(),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=>({el:e,orig:e.getAttribute(`style`)})):[],N=null,P=null,F=null,I=null,L=null,R=null,z=null,B=null,V=[],ee=null,te=null,H=null,ne=null,re=null,U=null,W=null,G=[],K=Number.isFinite(t.stickyDurationMs)&&t.stickyDurationMs>0,q=Number.isFinite(t.stickyScrollDistance)&&t.stickyScrollDistance>0,J=!!(t.sticky&&(K||q)),Y=`pending`,ie=0,ae=0,oe=null,se=null,ce=null,X=null,Z=null,le=null,ue=[],de=Number.isFinite(t.stickyHeaderFallbackHeight)?Math.max(0,t.stickyHeaderFallbackHeight):null,fe={FLOW_SYNCED_BODY:`flowSyncedBody`,SPLIT_IN_FLOW:`splitInFlow`,IN_FLOW:`inFlow`};U=(()=>{let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);if(t.position===`fixed`||t.position===`sticky`)return e;e=e.parentElement}return null})(),W=U?U.getAttribute(`style`):null;let pe=!!(o&&f!==u.afr&&(U||p)),me=f===u.afr||x?fe.FLOW_SYNCED_BODY:pe?fe.SPLIT_IN_FLOW:fe.IN_FLOW,Q=me===fe.FLOW_SYNCED_BODY,he=e=>{if(!e||e===H||e===y||e===a)return!1;let t=e.firstElementChild;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;let n=r.getComputedStyle(e);return n.position===`fixed`||n.position===`sticky`},ge=e=>{!e?.parentElement||G.some(t=>t.shell===e)||(G.push({shell:e,parent:e.parentElement,nextSibling:e.nextSibling}),e.remove())},_e=()=>{for(let e of i.querySelectorAll(`.container`)){let t=e.parentElement;he(t)&&ge(t)}},ve=e=>{let t=e?.parentElement;for(;t&&t!==i.body&&t!==i.documentElement;){let e=r.getComputedStyle(t);(e.transform&&e.transform!==`none`||e.willChange&&e.willChange!==`auto`||e.contain&&e.contain!==`none`||e.filter&&e.filter!==`none`||e.perspective&&e.perspective!==`none`)&&(V.find(e=>e.el===t)||V.push({el:t,orig:t.getAttribute(`style`)}),t.style.transform=`none`,t.style.willChange=`auto`,t.style.contain=`none`,t.style.filter=`none`,t.style.perspective=`none`),t=t.parentElement}},ye=()=>{let e=i.createElement(`div`);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},be=()=>{if(!s||f!==u.wwos)return null;let e=a.getBoundingClientRect().bottom,t=Array.from(s.querySelectorAll(`div`)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=e.querySelector(`ul`);return{el:e,list:i,rect:t,styles:n,listStyles:i?r.getComputedStyle(i):null}}).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`);return t.length?(t.sort((t,n)=>Math.abs(t.rect.top-e)-Math.abs(n.rect.top-e)),t[0]):null},$=()=>B||a,xe=()=>!t.stickyRespectHeader||!t.stickyHeaderSelector?[]:Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map(e=>{let t=e.getBoundingClientRect(),n=r.getComputedStyle(e),i=Number.parseInt(n.zIndex,10);return{el:e,rect:t,styles:n,zIndex:Number.isFinite(i)?i:null}}).filter(({rect:e,styles:t})=>e.width<=r.innerWidth*.5||e.height<=0?!1:t.display!==`none`&&t.visibility!==`hidden`),Se=()=>{let e=xe().filter(({rect:e,styles:n})=>n.position!==`fixed`&&n.position!==`sticky`?!1:e.top<=t.stickyTop+1&&e.bottom>t.stickyTop+1);return e.length?(e.sort((e,t)=>t.rect.bottom-e.rect.bottom),e[0]):null},Ce=()=>{let e=Se();return e?Math.max(t.stickyTop,Math.round(e.rect.bottom)):Math.max(t.stickyTop,de||t.stickyTop)},we=()=>{let e=Se();return e?.zIndex&&e.zIndex>2?Math.max(1,Math.min(t.stickyZIndex,e.zIndex-1)):t.stickyZIndex},Te=({active:e,progress:t=0,remainingMs:n=0})=>{R?.contentWindow&&R.contentWindow.postMessage({type:`mobilefireplace:sticky`,active:e,progress:Math.max(0,Math.min(1,t)),remainingMs:Math.max(0,Math.round(n))},`*`)},Ee=e=>{!e||ue.some(t=>t.el===e)||ue.push({el:e,value:e.style.getPropertyValue(`z-index`),priority:e.style.getPropertyPriority(`z-index`)})},De=e=>{let t=new Set([$()].filter(Boolean));if(f===u.afr||U||p){[a,y,c].filter(Boolean).forEach(e=>t.add(e));let e=$()?.parentElement;for(;e&&e!==i.body&&e!==i.documentElement&&(t.add(e),e.id!==`stickyLeaderboard`);)e=e.parentElement}for(let n of t)Ee(n),n.style.setProperty(`z-index`,String(e),`important`)},Oe=()=>Q&&(a.closest(`#stickyLeaderboard`)||i.querySelector(`#stickyLeaderboard`))||$(),ke=()=>{if(!Q||!R)return;let e=R.style;e.left=`0px`,e.width=`100vw`},Ae=()=>{if(!Q||!R||Y===`active`)return;let e=Oe();if(!e)return;let t=e.getBoundingClientRect(),n=R.style;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`)},je=()=>{Q&&(Ae(),ce&&r.cancelAnimationFrame(ce),ce=r.requestAnimationFrame(()=>{ce=null,Ae()}),X&&r.clearTimeout(X),X=r.setTimeout(()=>{X=null,Ae()},350))},Me=()=>{for(let e=ue.length-1;e>=0;--e){let{el:t,value:n,priority:r}=ue[e];n?t.style.setProperty(`z-index`,n,r):t.style.removeProperty(`z-index`)}ue.length=0},Ne=()=>{if(!R)return;ve($());let e=$().getBoundingClientRect(),t=we();De(t);let n=R.style;n.position=`fixed`,n.top=`${Ce()}px`,Q?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`,``)},Pe=()=>{if(!R)return;if(Q){je(),Me();return}let e=R.style;e.position=`relative`,e.top=``,e.left=``,e.width=`100%`,e.setProperty(`z-index`,`1`),Me(),R.removeAttribute(`data-mf-sticky-active`)},Fe=()=>{se&&=(r.cancelAnimationFrame(se),null)},Ie=()=>{if(oe===null){let e=$().getBoundingClientRect();oe=Math.max(0,r.scrollY+e.top-Ce())}return oe},Le=()=>ae+(Y===`active`?Math.max(0,r.performance.now()-ie):0),Re=()=>Math.max(0,r.scrollY-Ie()),ze=()=>{let e=K?Le()/t.stickyDurationMs:0,n=q?Re()/t.stickyScrollDistance:0;return Math.max(e,n)},Be=()=>K?t.stickyDurationMs-Le():0,Ve=()=>r.scrollY<Ie()-1,He=()=>{Y===`active`&&(ae=Le(),Y=`paused`,Fe(),Pe(),Te({active:!1,progress:ze(),remainingMs:Be()}))},Ue=()=>{Y!==`paused`||Ve()||(Y=`active`,ie=r.performance.now(),Ne(),Ge())},We=()=>{(Y===`active`||Y===`paused`)&&(Y===`active`&&(ae=Le()),Y=`released`,Fe(),Pe(),Te({active:!1,progress:1,remainingMs:0}))},Ge=()=>{if(Y!==`active`)return;if(Ve()){He();return}let e=Le(),n=Re(),i=K?e/t.stickyDurationMs:0,a=q?n/t.stickyScrollDistance:0,o=Math.max(i,a),s=K?t.stickyDurationMs-e:0;if(Ne(),Te({active:!0,progress:o,remainingMs:s}),i>=1||a>=1){We();return}se=r.requestAnimationFrame(Ge)},Ke=()=>{if(!J||Y!==`pending`||!R)return;let e=$().getBoundingClientRect();oe=Math.max(0,r.scrollY+e.top-Ce()),ae=0,Y=`active`,ie=r.performance.now(),Ne(),Ge()},qe=()=>{!J||Y!==`pending`||!R||r.scrollY<=0||$().getBoundingClientRect().top<=Ce()&&Ke()},Je=()=>{Y===`pending`?qe():Y===`active`&&Ve()?He():Y===`paused`&&Ue(),Y!==`active`&&je()},Ye=()=>{Je(),le&&r.cancelAnimationFrame(le),le=r.requestAnimationFrame(()=>{le=null,Je()})},Xe=()=>{_e();let e=n.parentElement;for(;e&&e!==i.body&&e!==i.documentElement;){let t=r.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(V.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(V.find(t=>t.el===e)||V.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}let d=n.style;if(d.setProperty(`position`,f===u.afr?`absolute`:`fixed`,f===u.afr?`important`:``),d.setProperty(`top`,`0`,f===u.afr?`important`:``),d.setProperty(`left`,`0`,f===u.afr?`important`:``),d.setProperty(`width`,f===u.afr?`0`:`100vw`,f===u.afr?`important`:``),d.setProperty(`height`,f===u.afr?`0`:`100dvh`,f===u.afr?`important`:``),d.setProperty(`z-index`,f===u.afr?`0`:String(t.zIndex),f===u.afr?`important`:``),d.setProperty(`border`,`none`,f===u.afr?`important`:``),d.setProperty(`margin`,`0`,f===u.afr?`important`:``),d.setProperty(`padding`,`0`,f===u.afr?`important`:``),d.setProperty(`display`,`block`,f===u.afr?`important`:``),d.setProperty(`opacity`,f===u.afr?`0`:`1`,f===u.afr?`important`:``),d.setProperty(`pointer-events`,`none`,f===u.afr?`important`:``),f===u.afr&&l&&l!==`about:blank`)try{let e=new URL(l);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`);let t=z.style;t.setProperty(`position`,`fixed`,`important`),t.setProperty(`top`,`0`,`important`),t.setProperty(`left`,`0`,`important`),t.setProperty(`width`,`100vw`,`important`),t.setProperty(`height`,`100dvh`,`important`),t.setProperty(`border`,`none`,`important`),t.setProperty(`margin`,`0`,`important`),t.setProperty(`padding`,`0`,`important`),t.setProperty(`display`,`block`,`important`),t.setProperty(`background`,`transparent`,`important`),t.setProperty(`z-index`,`0`,`important`),t.setProperty(`pointer-events`,`none`,`important`),i.body.insertBefore(z,i.body.firstChild)}catch(e){console.warn(`[mobilefireplace] Could not create AFR wallpaper iframe:`,e)}if(a.setAttribute(`poweredAC`,`0.1.115`),_){let e=_.style;e.width=`100%`,e.height=`0`,e.overflow=`visible`,e.position=`static`,e.margin=`0`}let p=a.style;p.height=t.billboardHeight+`px`,p.minHeight=t.billboardHeight+`px`,p.background=`transparent`,p.overflow=`visible`,p.position=`relative`,p.width=`100%`,p.padding=`0`,p.margin=`0`,y&&(y.style.overflow=`visible`,y.style.position=`relative`,y.style.backgroundColor=`transparent`,y.style.height=t.billboardHeight+`px`,y.style.minHeight=t.billboardHeight+`px`,y.style.maxHeight=t.billboardHeight+`px`,y.style.padding=`0`,y.style.margin=`0`,x&&S&&S!==`0px`&&(y.style.marginTop=S),y.setAttribute(`data-mf-slot`,``));let m=`max(${t.sideStripWidth}px, env(safe-area-inset-left))`,h=`max(${t.sideStripWidth}px, env(safe-area-inset-right))`;if(L=i.createElement(`style`),L.id=`mobilefireplace-pac`,L.textContent=`
148
148
  /* Mobile Fireplace — powered-ad-config */
149
149
  html, body {
150
150
  background-color: transparent !important;
@@ -397,4 +397,4 @@
397
397
  margin: 0 !important;
398
398
  padding: 0 !important;
399
399
  }
400
- `,i.head.appendChild(L),f.setup&&f.setup(i,a),f===u.wwos){let e=be();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%`))}if(he===pe.SPLIT_IN_FLOW){if(G&&(ee=c||y),l&&l!==`about:blank`){let e=new URL(l);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`);let n=z.style;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)}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=Q(),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`;for(let{el:e}of M)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;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`),ve()}B||(B=Q(),a.appendChild(B))},Ze=null,Qe=null,$e=!1,et=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);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`)}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`);Y===`active`?Ne():je()};if(Xe(),l&&l!==`about:blank`)try{let e=new URL(l);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`);let n=R.style;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),re&&(X=Ye,r.addEventListener(`scroll`,X,{passive:!0}),i.addEventListener(`scroll`,X,{passive:!0}),i.scrollingElement?.addEventListener(`scroll`,X,{passive:!0}))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:z?.contentWindow||n.contentWindow,billboardIframe:R,billboardWindow:null},z&&z.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=z.contentWindow)}catch{}}),R&&R.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=R.contentWindow}catch{}}),Ze=et,r.addEventListener(`resize`,Ze),et(),Qe=()=>{tt()},window.addEventListener(`pagehide`,Qe),window.addEventListener(`beforeunload`,Qe),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let tt=()=>{if(!$e){$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({active:!1,progress:1,remainingMs:0}),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),R&&R.parentNode&&(R.parentNode.removeChild(R),R=null),B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),z&&z.parentNode&&(z.parentNode.removeChild(z),z=null);try{delete r.__mfBridge}catch{}for(let e=q.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=q[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}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`);for(let{el:e,orig:t}of V)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);V.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),ee&&=(te&&(W&&W.parentNode===te?te.insertBefore(ee,W):te.appendChild(ee),te=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);for(let{el:e,orig:t}of M)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);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`))}};return tt},G=(e={})=>{let t={expandedHeight:180,collapsedHeight:50,classicBannerWidth:320,classicBannerHeight:50,zIndex:1e4,collapseDurationMs:0,collapseScrollDistance:5600,collapseTransitionMs:400,creativeUrl:null,pageTopPadding:null,onAdapt:null,onProgress:null,...e},n=`bsRole`,r=`display`,i=`banner`;if(!window.frameElement)return()=>{};try{let e=new URL(window.location.href).searchParams.get(n);if(e===r||e===i)return()=>{}}catch{}let a=t.creativeUrl||``,o=d(window);if(!o?.doc||!o?.win)return console.warn(`[bottomscroller] Could not resolve publisher document — aborting setup.`),()=>{};let s=o.win,c=o.doc,l=o.iframe||window.frameElement;if(!l)return console.warn(`[bottomscroller] Could not resolve host iframe on publisher page.`),()=>{};let u=(()=>{let e=l;for(;e&&e!==c.body&&e!==c.documentElement;){if(e.id&&e.id.includes(`adspot`))return e;e=e.parentElement}return c.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`)||l.parentElement})();if(!u)return()=>{};let f={nine:{pageTopPadding:64,getPaddingTargets(e){return[e.querySelector(`#app`)?.querySelector(`[data-ad-target="page-container"]`)||e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{getPaddingTargets(e){return[e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{getPaddingTargets(e){return[e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{getPaddingTargets(e){return[e.querySelector(`main#content`)||e.querySelector(`main`)].filter(Boolean)},setup(e){(e.querySelector(`main#content`)||e.querySelector(`main`))?.style.setProperty(`position`,`relative`)}}},p=[{site:`https://www.nine.com.au`,config:f.nine},{site:`https://staging.nine.com.au`,config:f.nine},{site:`https://preview.nine.com.au`,config:f.nine},{site:`https://creative-preview-an.com`,config:f.nine},{site:`https://www.smh`,config:f.smh},{site:`https://www.theage`,config:f.theage},{site:`https://www.afr.com.au`,config:f.afr},{site:`https://www.afr.com`,config:f.afr}],m=(()=>{let e=s.location.href;for(let t of p)if(e.indexOf(t.site)>=0)return t.config;return f.nine})(),h=u.getAttribute(`style`),g=l.getAttribute(`style`),_=l.parentElement===u?null:l.parentElement,v=_?_.getAttribute(`style`):null,y=u.parentElement,b=y?y.getAttribute(`style`):null,x=[],S=[],C=null,w=null,T=null,E=l,D=null,O=null,k=t.expandedHeight,A=!1,j=null,M=null,N=null,P=!1,F=Number.isFinite(t.collapseScrollDistance)&&t.collapseScrollDistance>0,I=()=>s.visualViewport?Math.round(s.innerHeight-(s.visualViewport.offsetTop+s.visualViewport.height)):0,L=()=>{let e=Math.max(0,s.scrollY);return e<=0?(A=!1,0):A?1:F?Math.min(1,e/t.collapseScrollDistance):0},R=e=>{let n=Math.max(0,Math.min(1,e));return Math.round(t.expandedHeight-(t.expandedHeight-t.collapsedHeight)*n)},z=e=>e<=0?`expanded`:e>=1?`collapsed`:`tracking`,B=()=>{let e=m.getPaddingTargets(c),t=[];for(let n of e)!n||t.includes(n)||t.some(e=>e.contains(n))||t.push(n);return t},V=Number.isFinite(t.pageTopPadding)?Math.max(0,t.pageTopPadding):Number.isFinite(m.pageTopPadding)?Math.max(0,m.pageTopPadding):0,H=e=>{!e||S.some(t=>t.el===e)||S.push({el:e,paddingBottom:e.style.getPropertyValue(`padding-bottom`),paddingBottomPriority:e.style.getPropertyPriority(`padding-bottom`),paddingTop:e.style.getPropertyValue(`padding-top`),paddingTopPriority:e.style.getPropertyPriority(`padding-top`)})},U=e=>{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`)},ee=()=>w||E,te=()=>ee()?.contentWindow||null,W=e=>{if(!e)return;let n=e.style;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))},G=e=>{let n=t.classicBannerWidth,r=t.classicBannerHeight;e.setAttribute(`width`,String(n)),e.setAttribute(`height`,String(r));let i=e.style;i.display=`block`,i.width=`${n}px`,i.height=`${r}px`,i.maxWidth=`100%`,i.border=`none`,i.margin=`0 auto`,i.padding=`0`,i.overflow=`hidden`,i.background=`transparent`},K=()=>{let e=E.style;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`},q=()=>{P||(P=!0,t.onAdapt&&t.onAdapt())},J=(e,n=!1)=>{if(!C)return;k=e;let r=I();n?C.style.transition=`height ${t.collapseTransitionMs}ms ease`:C.style.transition=`none`,C.style.height=`${e}px`,C.style.bottom=`${r}px`,W(ee()),U(e)},ne=e=>{let n=e.progress??L(),r={type:`bottomscroller:progress`,phase:e.phase??z(n),progress:Math.max(0,Math.min(1,n)),remainingMs:0,height:k,active:n>0&&n<1,...e},i=te();i&&i.postMessage(r,`*`),typeof window<`u`&&window.postMessage&&window.postMessage(r,`*`),typeof t.onProgress==`function`&&t.onProgress(r)},re=({animate:e=!1}={})=>{let t=L(),n=R(t);J(n,e),ne({phase:z(t),progress:t,remainingMs:0,active:t>0&&t<1})},Y=()=>{A=!0,re({animate:!0})},ie=()=>{re(),M&&s.cancelAnimationFrame(M),M=s.requestAnimationFrame(()=>{M=null,re()})},ae=()=>{let e=l.parentElement;for(;e&&e!==c.body&&e!==c.documentElement;){let t=s.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(x.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(x.find(t=>t.el===e)||x.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}},oe=()=>{if(!(!a||a===`about:blank`))try{let e=new URL(a,s.location.href);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)}catch(e){console.warn(`[bottomscroller] Could not create banner iframe:`,e)}};return(()=>{if(u.setAttribute(`poweredAC`,`0.1.114`),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,{position:`fixed`,left:`0`,bottom:`0`,width:`100vw`,height:`${t.expandedHeight}px`,zIndex:String(t.zIndex),overflow:`hidden`,margin:`0`,padding:`0`,pointerEvents:`auto`,boxSizing:`border-box`,background:`transparent`}),a&&a!==`about:blank`)try{let e=new URL(a,s.location.href);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`,()=>{q(),re()},{once:!0}),C.appendChild(w)}catch(e){console.warn(`[bottomscroller] Could not create display iframe:`,e)}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),re(),N=e=>{e?.data?.type===`bottomscroller:collapse`&&Y()},s.addEventListener(`message`,N),j=ie,s.addEventListener(`scroll`,j,{passive:!0}),c.addEventListener(`scroll`,j,{passive:!0}),c.scrollingElement?.addEventListener(`scroll`,j,{passive:!0}),s.visualViewport?.addEventListener(`resize`,ie,{passive:!0})})(),()=>{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`,ie),w&&=(w.remove(),null),T&&=(T.remove(),null),C&&=(D&&E.parentElement===C&&(O?D.insertBefore(E,O):D.appendChild(E)),C.remove(),null);for(let{el:e,orig:t}of x)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);x.length=0;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`);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`))}},K=()=>{};function q({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof K==`function`&&K();let o=()=>{};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=ee(a):e===`liquidframe`?o=te(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}return q.version=`0.1.114`,q});
400
+ `,i.head.appendChild(L),f.setup&&f.setup(i,a),f===u.wwos){let e=be();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%`))}if(me===fe.SPLIT_IN_FLOW){if(U&&(H=c||y),l&&l!==`about:blank`){let e=new URL(l);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`);let n=z.style;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)}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),U?(U.style.position=`static`,U.style.inset=`auto`,U.style.height=`0`,U.style.minHeight=`0`,U.style.maxHeight=`0`,U.style.overflow=`hidden`,U.style.backgroundColor=`transparent`,U.style.boxShadow=`none`,U.style.border=`0`,U.style.outline=`0`,U.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`;for(let{el:e}of M)e.style.backgroundColor=`transparent`,e.style.boxShadow=`none`,e.style.paddingLeft=`10px`,e.style.paddingRight=`10px`;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`),_e()}B||(B=ye(),a.appendChild(B))},Ze=null,Qe=null,$e=!1,et=()=>{let e=r.innerWidth,n=r.innerHeight;if(e>n){let r=n/e,i=Math.round(t.billboardHeight*r);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`)}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`);Y===`active`?Ne():je()};if(Xe(),l&&l!==`about:blank`)try{let e=new URL(l);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`);let n=R.style;n.position=Q?`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=Q?`6`:`1`,Q?(R.setAttribute(`data-mf-body-billboard`,``),i.body.appendChild(R),Ae()):(B||a).appendChild(R),J&&(Z=Ye,r.addEventListener(`scroll`,Z,{passive:!0}),i.addEventListener(`scroll`,Z,{passive:!0}),i.scrollingElement?.addEventListener(`scroll`,Z,{passive:!0}))}catch(e){console.warn(`[mobilefireplace] Could not create billboard iframe:`,e)}r.__mfBridge={adapted:!1,wallpaperWindow:z?.contentWindow||n.contentWindow,billboardIframe:R,billboardWindow:null},z&&z.addEventListener(`load`,()=>{try{r.__mfBridge&&(r.__mfBridge.wallpaperWindow=z.contentWindow)}catch{}}),R&&R.addEventListener(`load`,()=>{try{r.__mfBridge.billboardWindow=R.contentWindow}catch{}}),Ze=et,r.addEventListener(`resize`,Ze),et(),Qe=()=>{tt()},window.addEventListener(`pagehide`,Qe),window.addEventListener(`beforeunload`,Qe),t.onAdapt&&r.requestAnimationFrame(()=>{r.__mfBridge.adapted=!0,t.onAdapt()});let tt=()=>{if(!$e){$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(),ce&&=(r.cancelAnimationFrame(ce),null),X&&=(r.clearTimeout(X),null),Te({active:!1,progress:1,remainingMs:0}),L&&L.parentNode&&(L.parentNode.removeChild(L),L=null),R&&R.parentNode&&(R.parentNode.removeChild(R),R=null),B&&B.parentNode&&(B.parentNode.removeChild(B),B=null),z&&z.parentNode&&(z.parentNode.removeChild(z),z=null);try{delete r.__mfBridge}catch{}for(let e=G.length-1;e>=0;--e){let{shell:t,parent:n,nextSibling:r}=G[e];!t||!n||(r&&r.parentNode===n?n.insertBefore(t,r):n.appendChild(t))}G.length=0,ee&&(te&&te.parentNode===ee?ee.insertBefore(n,te):ee.appendChild(n),ee=null,te=null),m?n.setAttribute(`style`,m):n.removeAttribute(`style`),h||n.removeAttribute(`data-mf-wallpaper-iframe`);for(let{el:e,orig:t}of V)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);V.length=0,g?a.setAttribute(`style`,g):a.removeAttribute(`style`),_&&(v?_.setAttribute(`style`,v):_.removeAttribute(`style`)),H&&=(ne&&(re&&re.parentNode===ne?ne.insertBefore(H,re):ne.appendChild(H),ne=null,re=null),null),y&&(y.removeAttribute(`data-mf-slot`),C?y.setAttribute(`style`,C):y.removeAttribute(`style`)),U&&(W?U.setAttribute(`style`,W):U.removeAttribute(`style`),U=null,W=null);for(let{el:e,orig:t}of M)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);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`))}};return tt},W=(e={})=>{let t={expandedHeight:180,collapsedHeight:50,classicBannerWidth:320,classicBannerHeight:50,zIndex:1e4,collapseDurationMs:0,collapseScrollDistance:5600,collapseTransitionMs:400,creativeUrl:null,pageTopPadding:null,onAdapt:null,onProgress:null,...e},n=`bsRole`,r=`display`,i=`banner`;if(!window.frameElement)return()=>{};try{let e=new URL(window.location.href).searchParams.get(n);if(e===r||e===i)return()=>{}}catch{}let a=t.creativeUrl||``,o=d(window);if(!o?.doc||!o?.win)return console.warn(`[bottomscroller] Could not resolve publisher document — aborting setup.`),()=>{};let s=o.win,c=o.doc,l=o.iframe||window.frameElement;if(!l)return console.warn(`[bottomscroller] Could not resolve host iframe on publisher page.`),()=>{};let u=(()=>{let e=l;for(;e&&e!==c.body&&e!==c.documentElement;){if(e.id&&e.id.includes(`adspot`))return e;e=e.parentElement}return c.querySelector(`#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above`)||l.parentElement})();if(!u)return()=>{};let f={nine:{pageTopPadding:64,getPaddingTargets(e){return[e.querySelector(`#app`)?.querySelector(`[data-ad-target="page-container"]`)||e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},smh:{getPaddingTargets(e){return[e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},theage:{getPaddingTargets(e){return[e.querySelector(`main`)].filter(Boolean)},setup(e){e.querySelector(`main`)?.style.setProperty(`position`,`relative`)}},afr:{getPaddingTargets(e){return[e.querySelector(`main#content`)||e.querySelector(`main`)].filter(Boolean)},setup(e){(e.querySelector(`main#content`)||e.querySelector(`main`))?.style.setProperty(`position`,`relative`)}}},p=[{site:`https://www.nine.com.au`,config:f.nine},{site:`https://staging.nine.com.au`,config:f.nine},{site:`https://preview.nine.com.au`,config:f.nine},{site:`https://creative-preview-an.com`,config:f.nine},{site:`https://www.smh`,config:f.smh},{site:`https://www.theage`,config:f.theage},{site:`https://www.afr.com.au`,config:f.afr},{site:`https://www.afr.com`,config:f.afr}],m=(()=>{let e=s.location.href;for(let t of p)if(e.indexOf(t.site)>=0)return t.config;return f.nine})(),h=u.getAttribute(`style`),g=l.getAttribute(`style`),_=l.parentElement===u?null:l.parentElement,v=_?_.getAttribute(`style`):null,y=u.parentElement,b=y?y.getAttribute(`style`):null,x=[],S=[],C=null,w=null,T=null,E=l,D=null,O=null,k=t.expandedHeight,A=!1,j=null,M=null,N=null,P=!1,F=Number.isFinite(t.collapseScrollDistance)&&t.collapseScrollDistance>0,I=()=>s.visualViewport?Math.round(s.innerHeight-(s.visualViewport.offsetTop+s.visualViewport.height)):0,L=()=>{let e=Math.max(0,s.scrollY);return e<=0?(A=!1,0):A?1:F?Math.min(1,e/t.collapseScrollDistance):0},R=e=>{let n=Math.max(0,Math.min(1,e));return Math.round(t.expandedHeight-(t.expandedHeight-t.collapsedHeight)*n)},z=e=>e<=0?`expanded`:e>=1?`collapsed`:`tracking`,B=()=>{let e=m.getPaddingTargets(c),t=[];for(let n of e)!n||t.includes(n)||t.some(e=>e.contains(n))||t.push(n);return t},V=Number.isFinite(t.pageTopPadding)?Math.max(0,t.pageTopPadding):Number.isFinite(m.pageTopPadding)?Math.max(0,m.pageTopPadding):0,ee=e=>{!e||S.some(t=>t.el===e)||S.push({el:e,paddingBottom:e.style.getPropertyValue(`padding-bottom`),paddingBottomPriority:e.style.getPropertyPriority(`padding-bottom`),paddingTop:e.style.getPropertyValue(`padding-top`),paddingTopPriority:e.style.getPropertyPriority(`padding-top`)})},te=e=>{for(let t of B())ee(t),t.style.setProperty(`padding-bottom`,`${e}px`,`important`),V>0&&t.style.setProperty(`padding-top`,`${V}px`,`important`)},H=()=>w||E,ne=()=>H()?.contentWindow||null,re=e=>{if(!e)return;let n=e.style;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))},U=e=>{let n=t.classicBannerWidth,r=t.classicBannerHeight;e.setAttribute(`width`,String(n)),e.setAttribute(`height`,String(r));let i=e.style;i.display=`block`,i.width=`${n}px`,i.height=`${r}px`,i.maxWidth=`100%`,i.border=`none`,i.margin=`0 auto`,i.padding=`0`,i.overflow=`hidden`,i.background=`transparent`},W=()=>{let e=E.style;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`},G=()=>{P||(P=!0,t.onAdapt&&t.onAdapt())},K=(e,n=!1)=>{if(!C)return;k=e;let r=I();n?C.style.transition=`height ${t.collapseTransitionMs}ms ease`:C.style.transition=`none`,C.style.height=`${e}px`,C.style.bottom=`${r}px`,re(H()),te(e)},q=e=>{let n=e.progress??L(),r={type:`bottomscroller:progress`,phase:e.phase??z(n),progress:Math.max(0,Math.min(1,n)),remainingMs:0,height:k,active:n>0&&n<1,...e},i=ne();i&&i.postMessage(r,`*`),typeof window<`u`&&window.postMessage&&window.postMessage(r,`*`),typeof t.onProgress==`function`&&t.onProgress(r)},J=({animate:e=!1}={})=>{let t=L(),n=R(t);K(n,e),q({phase:z(t),progress:t,remainingMs:0,active:t>0&&t<1})},Y=()=>{A=!0,J({animate:!0})},ie=()=>{J(),M&&s.cancelAnimationFrame(M),M=s.requestAnimationFrame(()=>{M=null,J()})},ae=()=>{let e=l.parentElement;for(;e&&e!==c.body&&e!==c.documentElement;){let t=s.getComputedStyle(e);(t.transform&&t.transform!==`none`||t.willChange&&t.willChange!==`auto`||t.contain&&t.contain!==`none`||t.filter&&t.filter!==`none`||t.perspective&&t.perspective!==`none`)&&(x.push({el:e,orig:e.getAttribute(`style`)}),e.style.transform=`none`,e.style.willChange=`auto`,e.style.contain=`none`,e.style.filter=`none`,e.style.perspective=`none`),t.overflow!==`visible`&&(x.find(t=>t.el===e)||x.push({el:e,orig:e.getAttribute(`style`)}),e.style.overflow=`visible`),e=e.parentElement}},oe=()=>{if(!(!a||a===`about:blank`))try{let e=new URL(a,s.location.href);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`),U(T),(_||u).appendChild(T)}catch(e){console.warn(`[bottomscroller] Could not create banner iframe:`,e)}};return(()=>{if(u.setAttribute(`poweredAC`,`0.1.115`),m.setup&&m.setup(c,u),W(),oe(),ae(),C=c.createElement(`div`),C.id=`bottomscroller-shell`,C.setAttribute(`data-bottomscroller-shell`,``),Object.assign(C.style,{position:`fixed`,left:`0`,bottom:`0`,width:`100vw`,height:`${t.expandedHeight}px`,zIndex:String(t.zIndex),overflow:`hidden`,margin:`0`,padding:`0`,pointerEvents:`auto`,boxSizing:`border-box`,background:`transparent`}),a&&a!==`about:blank`)try{let e=new URL(a,s.location.href);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`),re(w),w.addEventListener(`load`,()=>{G(),J()},{once:!0}),C.appendChild(w)}catch(e){console.warn(`[bottomscroller] Could not create display iframe:`,e)}w||(D=E.parentElement,O=E.nextSibling,re(E),E.style.visibility=``,E.style.pointerEvents=``,E.style.position=`relative`,C.appendChild(E),G()),c.body.appendChild(C),J(),N=e=>{e?.data?.type===`bottomscroller:collapse`&&Y()},s.addEventListener(`message`,N),j=ie,s.addEventListener(`scroll`,j,{passive:!0}),c.addEventListener(`scroll`,j,{passive:!0}),c.scrollingElement?.addEventListener(`scroll`,j,{passive:!0}),s.visualViewport?.addEventListener(`resize`,ie,{passive:!0})})(),()=>{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`,ie),w&&=(w.remove(),null),T&&=(T.remove(),null),C&&=(D&&E.parentElement===C&&(O?D.insertBefore(E,O):D.appendChild(E)),C.remove(),null);for(let{el:e,orig:t}of x)t?e.setAttribute(`style`,t):e.removeAttribute(`style`);x.length=0;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`);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`))}},G=()=>{};function K({adFormat:e=``,stickyOffset:t=0,logoPosX:n=0,logoHeight:r=0,logoSmallHeight:i=0,...a}={}){typeof G==`function`&&G();let o=()=>{};return e===`fireplace`?o=m(t):e===`fireplace-collant`?o=h(t):e===`logomorph`?o=te(n,r,i):e===`dynamicheading`?o=ee(a):e===`interscroller`?o=ne(a):e===`liquidframe`?o=re(a):e===`mobilefireplace`?o=U(a):e===`bottomscroller`?o=W(a):console.warn(`[powered-ad-config] Unknown ad format:`,e),G=typeof o==`function`?o:()=>{},G}return K.version=`0.1.115`,K});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",